mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 05:02:11 +00:00
feat(foundry): redirect to signin page on auth API errors
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
84a80d59d7
commit
eab215c7cb
1 changed files with 3 additions and 0 deletions
|
|
@ -549,6 +549,9 @@ export function initBetterAuthService(actorClient: any, options: { apiUrl: strin
|
||||||
strategy: "compact",
|
strategy: "compact",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onAPIError: {
|
||||||
|
errorURL: stripTrailingSlash(options.appUrl) + "/signin",
|
||||||
|
},
|
||||||
socialProviders: {
|
socialProviders: {
|
||||||
github: {
|
github: {
|
||||||
clientId: requireEnv("GITHUB_CLIENT_ID"),
|
clientId: requireEnv("GITHUB_CLIENT_ID"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue