API - add refresh token
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from authlib.oauth2.rfc7636 import CodeChallenge
|
||||
from flask import Flask
|
||||
|
||||
from .grants import AuthorizationCodeGrant
|
||||
from .grants import AuthorizationCodeGrant, RefreshTokenGrant
|
||||
from .server import authorization_server
|
||||
|
||||
|
||||
@@ -12,3 +12,4 @@ def config_oauth(app: Flask) -> None:
|
||||
authorization_server.register_grant(
|
||||
AuthorizationCodeGrant, [CodeChallenge(required=True)]
|
||||
)
|
||||
authorization_server.register_grant(RefreshTokenGrant)
|
||||
|
||||
Reference in New Issue
Block a user