This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is in the sveltekit parent directory and is a seperate stack for SST. | |
import { Account } from "@rebut/core/account"; | |
import { Config } from "sst/node/config"; | |
import { AuthHandler, GoogleAdapter } from "sst/node/future/auth"; | |
import { sessions } from "./sessions"; | |
export const handler = AuthHandler({ | |
sessions, | |
providers: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCookie, useQueryParam, useResponse } from "sst/node/api"; | |
import { Config } from "sst/node/config"; | |
import { AuthHandler, GoogleAdapter } from "sst/node/future/auth"; | |
import { User } from "@strdb/core/user"; | |
declare module "sst/node/future/auth" { | |
export interface SessionTypes { | |
user: { | |
userID: string; |