auths: match JWT expiry on /auths/add with other sign-in paths (#23576)

This commit is contained in:
Classic298
2026-04-11 15:31:34 -06:00
committed by GitHub
parent 6acaaea59a
commit faf935ef52
+2 -1
View File
@@ -877,7 +877,8 @@ async def add_user(
db=db, db=db,
) )
token = create_token(data={'id': user.id}) expires_delta = parse_duration(request.app.state.config.JWT_EXPIRES_IN)
token = create_token(data={'id': user.id}, expires_delta=expires_delta)
return { return {
'token': token, 'token': token,
'token_type': 'Bearer', 'token_type': 'Bearer',