Create and share all your pronouns
- + {#if $userStore} + + {:else} + + {/if}
diff --git a/frontend/src/routes/auth/login/CallbackPage.svelte b/frontend/src/routes/auth/login/CallbackPage.svelte index 2993edf..e57ef3d 100644 --- a/frontend/src/routes/auth/login/CallbackPage.svelte +++ b/frontend/src/routes/auth/login/CallbackPage.svelte @@ -35,7 +35,8 @@ localStorage.setItem("pronouns-token", token); localStorage.setItem("pronouns-user", JSON.stringify(user)); userStore.set(user); - goto("/"); + addToast({ header: "Logged in", body: "Successfully logged in!" }); + goto(`/@${user.name}`); } }); diff --git a/frontend/src/routes/auth/login/discord/+page.svelte b/frontend/src/routes/auth/login/discord/+page.svelte index e7336ec..703e10c 100644 --- a/frontend/src/routes/auth/login/discord/+page.svelte +++ b/frontend/src/routes/auth/login/discord/+page.svelte @@ -25,7 +25,7 @@ localStorage.setItem("pronouns-user", JSON.stringify(resp.user)); userStore.set(resp.user); addToast({ header: "Welcome!", body: "Signed up successfully!" }); - goto("/"); + goto(`/@${resp.user.name}`); } catch (e) { data.error = e as APIError; } diff --git a/frontend/src/routes/auth/login/mastodon/[instance]/+page.svelte b/frontend/src/routes/auth/login/mastodon/[instance]/+page.svelte index 4570320..a192f05 100644 --- a/frontend/src/routes/auth/login/mastodon/[instance]/+page.svelte +++ b/frontend/src/routes/auth/login/mastodon/[instance]/+page.svelte @@ -26,7 +26,7 @@ localStorage.setItem("pronouns-user", JSON.stringify(resp.user)); userStore.set(resp.user); addToast({ header: "Welcome!", body: "Signed up successfully!" }); - goto("/"); + goto(`/@${resp.user.name}`); } catch (e) { data.error = e as APIError; } diff --git a/frontend/src/routes/auth/login/misskey/[instance]/+page.svelte b/frontend/src/routes/auth/login/misskey/[instance]/+page.svelte index ed9465f..24bfab4 100644 --- a/frontend/src/routes/auth/login/misskey/[instance]/+page.svelte +++ b/frontend/src/routes/auth/login/misskey/[instance]/+page.svelte @@ -26,7 +26,7 @@ localStorage.setItem("pronouns-user", JSON.stringify(resp.user)); userStore.set(resp.user); addToast({ header: "Welcome!", body: "Signed up successfully!" }); - goto("/"); + goto(`/@${resp.user.name}`); } catch (e) { data.error = e as APIError; }