Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 30, 2024
1 parent 76a078a commit 91272ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RyuzakiLib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from .extreme.quotestk import QouteSticker
from .extreme.userinfo import TelegramUserInfo
from .extreme.webshot import WebShotUrl
from .fastapi import FastAPISuper
from .hackertools.blackbox import Blackbox
from .hackertools.chatgpt import RendyDevChat
from .hackertools.cloudflare import CloudFlare
Expand All @@ -58,7 +59,6 @@
from .profile.user import Clone
from .pushdb import *
from .pyrogramMod import PyrogramMod
from .fastapi import FastAPISuper
from .quote import *
from .reminder import *
from .spamwatch.clients import SibylBan
Expand Down
9 changes: 5 additions & 4 deletions RyuzakiLib/fastapi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from authlib.integrations.starlette_client import OAuth
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from starlette.middleware.sessions import SessionMiddleware
from authlib.integrations.starlette_client import OAuth


class FastAPISuper:
def __init__(self, docs_url=None, redoc_url=None, config=None):
Expand Down Expand Up @@ -30,12 +31,12 @@ def auth_register(

async def authorize_redirect(self, request=None, redirect_uri=None):
return await self.auth.auth0.authorize_redirect(
request,
redirect_uri=redirect_uri,
request,
redirect_uri=redirect_uri,
scope="openid profile email",
response_type="code"
)

async def authorize_access_token(self, request=None):
token = await self.auth.auth0.authorize_access_token(request)
return token
Expand Down

0 comments on commit 91272ff

Please sign in to comment.