feat(oauth): Add certification component for handling OAuth login callbacks and improve user authentication flow

This commit is contained in:
web@ppanel
2025-01-20 23:50:42 +07:00
parent 652e0323fd
commit 5ed04c0a59
34 changed files with 327 additions and 12 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export function Logout() {
if (!isBrowser()) return;
cookies.remove('Authorization');
const pathname = location.pathname;
if (!['', '/', '/auth', '/tos'].includes(pathname)) {
if (!['', '/', '/auth', '/tos', '/oauth'].includes(pathname)) {
setRedirectUrl(location.pathname);
location.href = `/auth`;
}