Skip to content

Commit

Permalink
Auth: Remove unnecessary prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 authored and YT-Advanced committed May 5, 2024
1 parent 33583ea commit b1520c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun getServerAuthTokenManager(context: Context, packageName: String, options: Go
val serverAuthTokenManager = AuthManager(context, account.name, packageName, "oauth2:server:client_id:${options.serverClientId}:api_scope:${options.scopeUris.joinToString(" ")}")
serverAuthTokenManager.includeEmail = if (options.includeEmail) "1" else "0"
serverAuthTokenManager.includeProfile = if (options.includeProfile) "1" else "0"
serverAuthTokenManager.setOauth2Prompt(if (options.isForceCodeForRefreshToken) "consent" else "auto")
serverAuthTokenManager.setOauth2Prompt("auto")
serverAuthTokenManager.setItCaveatTypes("2")
return serverAuthTokenManager
}
Expand Down

0 comments on commit b1520c4

Please sign in to comment.