From 90fd6bd30242c09710498e84552835d6b1feefdd Mon Sep 17 00:00:00 2001 From: Mark Liffiton Date: Wed, 17 Jul 2024 00:50:04 -0500 Subject: [PATCH] More free tokens for SSO users trying it out. --- src/gened/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gened/oauth.py b/src/gened/oauth.py index f860b6c..4c03a39 100644 --- a/src/gened/oauth.py +++ b/src/gened/oauth.py @@ -112,7 +112,7 @@ def auth(provider_name: str) -> Response: current_app.logger.debug(f"SSO login: {provider_name=} email='{user_normed['email']}' full_name='{user_normed['full_name']}'") # Given 10 tokens by default if creating an account on first login. - user_row = ext_login_update_or_create(provider_name, user_normed, query_tokens=10) + user_row = ext_login_update_or_create(provider_name, user_normed, query_tokens=20) # Get their last active role, if there is one (and it still exists and is active) last_role_id = get_last_role(user_row['id'])