Commit 1a28543
fix(plugin-auth): land OAuth callback errors on the console login page (objectui#2458 item 1) (#2888)
better-auth redirects a failed OAuth callback (expired/replayed state, IdP
error) to its default error URL `${baseURL}/error`, which bounces to
`/?error=<code>` — and the root→console redirect drops the query string.
Net effect: a user who just signed in successfully at the IdP lands on a
silent login form (the reported "login silent failure").
Set onAPIError.errorURL to the console login page so the browser lands on
`/_console/login?error=<code>`; the console login page (objectui PR, paired)
renders that param as a visible error banner.
Refs objectstack-ai/objectui#2458 (item 1)
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent da5e686 commit 1a28543
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
889 | 913 | | |
890 | 914 | | |
891 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1172 | 1183 | | |
1173 | 1184 | | |
1174 | 1185 | | |
| |||
0 commit comments