feat: refresh接口也要纳入认证白名单
This commit is contained in:
@@ -171,7 +171,7 @@ def add_user_route(app: FastAPI):
|
||||
detail="token类型不正确",
|
||||
)
|
||||
access_token = CryptUtils.create_token(
|
||||
username=refresh_token.get("username"),
|
||||
username=token_info.get("username"),
|
||||
type="access",
|
||||
expires_delta=timedelta(minutes=env.jwt_access_token_expire_minutes),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user