feat: log in with tumblr

This commit is contained in:
sam 2024-12-09 21:48:07 +01:00
parent d30ebacc72
commit 3338243cea
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
10 changed files with 342 additions and 9 deletions

View file

@ -54,7 +54,9 @@
"confirm-password-label": "Confirm password",
"register-with-email-init-success": "Success! An email has been sent to your inbox, please press the link there to continue.",
"register-with-google": "Register with a Google account",
"remote-google-account-label": "Your Google account"
"remote-google-account-label": "Your Google account",
"register-with-tumblr": "Register with a Tumblr account",
"remote-tumblr-account-label": "Your Tumblr account"
},
"error": {
"bad-request-header": "Something was wrong with your input",

View file

@ -3,8 +3,7 @@
import type { Cookies } from "@sveltejs/kit";
import { DateTime } from "luxon";
// export const TOKEN_COOKIE_NAME = "__Host-pronounscc-token";
export const TOKEN_COOKIE_NAME = "pronounscc-token";
export const TOKEN_COOKIE_NAME = "__Host-pronounscc-token";
export const setToken = (cookies: Cookies, token: string) =>
cookies.set(TOKEN_COOKIE_NAME, token, { path: "/" });