mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 04:45:19 +00:00
attempt 2
This commit is contained in:
parent
e0976e443f
commit
d17c90a8f3
2 changed files with 3 additions and 3 deletions
|
|
@ -47,8 +47,8 @@ export const providerMap = providers
|
||||||
.filter((provider) => provider.id !== "credentials");
|
.filter((provider) => provider.id !== "credentials");
|
||||||
|
|
||||||
|
|
||||||
const useSecureCookies = AUTH_URL.startsWith("https://");
|
const useSecureCookies = AUTH_URL?.startsWith("https://") ?? false;
|
||||||
const hostName = new URL(AUTH_URL).hostname;
|
const hostName = AUTH_URL ? new URL(AUTH_URL).hostname : "localhost";
|
||||||
|
|
||||||
export const { handlers, signIn, signOut, auth } = NextAuth({
|
export const { handlers, signIn, signOut, auth } = NextAuth({
|
||||||
secret: AUTH_SECRET,
|
secret: AUTH_SECRET,
|
||||||
|
|
|
||||||
|
|
@ -12,4 +12,4 @@ export const AUTH_GITHUB_CLIENT_ID = getEnv(process.env.AUTH_GITHUB_CLIENT_ID);
|
||||||
export const AUTH_GITHUB_CLIENT_SECRET = getEnv(process.env.AUTH_GITHUB_CLIENT_SECRET);
|
export const AUTH_GITHUB_CLIENT_SECRET = getEnv(process.env.AUTH_GITHUB_CLIENT_SECRET);
|
||||||
export const AUTH_GOOGLE_CLIENT_ID = getEnv(process.env.AUTH_GOOGLE_CLIENT_ID);
|
export const AUTH_GOOGLE_CLIENT_ID = getEnv(process.env.AUTH_GOOGLE_CLIENT_ID);
|
||||||
export const AUTH_GOOGLE_CLIENT_SECRET = getEnv(process.env.AUTH_GOOGLE_CLIENT_SECRET);
|
export const AUTH_GOOGLE_CLIENT_SECRET = getEnv(process.env.AUTH_GOOGLE_CLIENT_SECRET);
|
||||||
export const AUTH_URL = getEnv(process.env.AUTH_URL, "")!;
|
export const AUTH_URL = getEnv(process.env.AUTH_URL);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue