Skip to content

Commit d7cdf6b

Browse files
committed
fix: fix README.md example
1 parent d35c34b commit d7cdf6b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ from fastlink.schemas import OAuth2Callback, OpenID
3636

3737
app = FastAPI()
3838

39-
oauth = GoogleSSO(
39+
sso = GoogleSSO(
4040
settings.google_client_id,
4141
settings.google_client_secret,
4242
"http://localhost:8000/callback",
@@ -45,15 +45,15 @@ oauth = GoogleSSO(
4545

4646
@app.get("/login")
4747
async def login() -> RedirectResponse:
48-
async with oauth:
49-
url = await oauth.login_url()
48+
async with sso:
49+
url = await sso.login_url()
5050
return RedirectResponse(url=url)
5151

5252

5353
@app.get("/callback")
5454
async def callback(call: Annotated[OAuth2Callback, Depends()]) -> OpenID:
55-
async with oauth:
56-
return await oauth.callback(call)
55+
async with sso:
56+
return await sso.callback(call)
5757

5858
```
5959

0 commit comments

Comments
 (0)