We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d35c34b commit d7cdf6bCopy full SHA for d7cdf6b
1 file changed
README.md
@@ -36,7 +36,7 @@ from fastlink.schemas import OAuth2Callback, OpenID
36
37
app = FastAPI()
38
39
-oauth = GoogleSSO(
+sso = GoogleSSO(
40
settings.google_client_id,
41
settings.google_client_secret,
42
"http://localhost:8000/callback",
@@ -45,15 +45,15 @@ oauth = GoogleSSO(
45
46
@app.get("/login")
47
async def login() -> RedirectResponse:
48
- async with oauth:
49
- url = await oauth.login_url()
+ async with sso:
+ url = await sso.login_url()
50
return RedirectResponse(url=url)
51
52
53
@app.get("/callback")
54
async def callback(call: Annotated[OAuth2Callback, Depends()]) -> OpenID:
55
56
- return await oauth.callback(call)
+ return await sso.callback(call)
57
58
```
59
0 commit comments