Skip to content

Commit

Permalink
Set default expiry for tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
mkangia authored Sep 3, 2024
1 parent 8b0e2e8 commit e967b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hq_superset/oauth2_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def save_token(token: dict, request: FlaskOAuth2Request) -> None:
token_type=token['token_type'],
access_token=token['access_token'],
scope=client.domain,
expires_in=10, # 10 Seconds
expires_in=864000, # 10 days
)
db.session.add(token)
db.session.commit()
Expand Down

0 comments on commit e967b6c

Please sign in to comment.