You've already forked AstralRinth
forked from didirus/AstralRinth
Billing / plus frontend (#2130)
* [wip] initial * [wip] subscriptions/plus frontend * [wip] finish payment flow * Charges page * finish most subscriptions work * Finish * update eslint * Fix issues * fix intl extract * fix omorphia locale extract * fix responsiveness * fix lint
This commit is contained in:
@@ -39,6 +39,16 @@ export const initAuth = async (oldToken = null) => {
|
||||
authCookie.value = route.query.code;
|
||||
}
|
||||
|
||||
if (route.fullPath.includes("new_account=true") && route.path !== "/auth/welcome") {
|
||||
const redirect = route.path.startsWith("/auth/") ? null : route.fullPath;
|
||||
|
||||
await navigateTo(
|
||||
`/auth/welcome?authToken=${route.query.code}${
|
||||
redirect ? `&redirect=${encodeURIComponent(redirect)}` : ""
|
||||
}`,
|
||||
);
|
||||
}
|
||||
|
||||
if (authCookie.value) {
|
||||
auth.token = authCookie.value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user