-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52bac9d
commit 2f4682f
Showing
17 changed files
with
225 additions
and
51 deletions.
There are no files selected for viewing
This file contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ FAKE_CODEGEN | |
.stryker-tmp | ||
.next | ||
.ts-prune | ||
|
||
interop/config/httpCodes.ts |
This file contains 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 contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// https://http.cat/ | ||
export const CONTINUE = 100; | ||
export const SWITCHING_PROTOCOLS = 101; | ||
export const PROCESSING = 102; | ||
export const EARLY_HINTS = 103; | ||
export const OK = 200; | ||
export const CREATED = 201; | ||
export const ACCEPTED = 202; | ||
export const NON_AUTHORITATIVE_INFORMATION = 203; | ||
export const NO_CONTENT = 204; | ||
export const RESET_CONTENT = 205; | ||
export const PARTIAL_CONTENT = 206; | ||
export const MULTI_STATUS = 207; | ||
export const ALREADY_REPORTED = 208; | ||
export const TRANSFORMATION_APPLIED = 214; | ||
export const IM_USED = 226; | ||
export const MULTIPLE_CHOICES = 300; | ||
export const MOVED_PERMANENTLY = 301; | ||
export const FOUND = 302; | ||
export const SEE_OTHER = 303; | ||
export const NOT_MODIFIED = 304; | ||
export const USE_PROXY = 305; | ||
export const TEMPORARY_REDIRECT = 307; | ||
export const PERMANENT_REDIRECT = 308; | ||
export const BAD_REQUEST = 400; | ||
export const UNAUTHORIZED = 401; | ||
export const PAYMENT_REQUIRED = 402; | ||
export const FORBIDDEN = 403; | ||
export const NOT_FOUND = 404; | ||
export const METHOD_NOT_ALLOWED = 405; | ||
export const NOT_ACCEPTABLE = 406; | ||
export const PROXY_AUTHENTICATION_REQUIRED = 407; | ||
export const REQUEST_TIMEOUT = 408; | ||
export const CONFLICT = 409; | ||
export const GONE = 410; | ||
export const LENGTH_REQUIRED = 411; | ||
export const PRECONDITION_FAILED = 412; | ||
export const PAYLOAD_TOO_LARGE = 413; | ||
export const REQUEST_URI_TOO_LONG = 414; | ||
export const UNSUPPORTED_MEDIA_TYPE = 415; | ||
export const REQUESTED_RANGE_NOT_SATISFIABLE = 416; | ||
export const EXPECTATION_FAILED = 417; | ||
export const IM_A_TEAPOT = 418; | ||
export const ENHANCE_YOUR_CALM = 420; | ||
export const MISDIRECTED_REQUEST = 421; | ||
export const UNPROCESSABLE_ENTITY = 422; | ||
export const LOCKED = 423; | ||
export const FAILED_DEPENDENCY = 424; | ||
export const TOO_EARLY = 425; | ||
export const UPGRADE_REQUIRED = 426; | ||
export const PRECONDITION_REQUIRED = 428; | ||
export const TOO_MANY_REQUESTS = 429; | ||
export const REQUEST_HEADER_FIELDS_TOO_LARGE = 431; | ||
export const NO_RESPONSE = 444; | ||
export const BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS = 450; | ||
export const UNAVAILABLE_FOR_LEGAL_REASONS = 451; | ||
export const HTTP_REQUEST_SENT_TO_HTTPS_PORT = 497; | ||
export const TOKEN_EXPIRED_OR_INVALID = 498; | ||
export const CLIENT_CLOSED_REQUEST = 499; | ||
export const INTERNAL_SERVER_ERROR = 500; | ||
export const NOT_IMPLEMENTED = 501; | ||
export const BAD_GATEWAY = 502; | ||
export const SERVICE_UNAVAILABLE = 503; | ||
export const GATEWAY_TIMEOUT = 504; | ||
export const VARIANT_ALSO_NEGOTIATES = 506; | ||
export const INSUFFICIENT_STORAGE = 507; | ||
export const LOOP_DETECTED = 508; | ||
export const BANDWIDTH_LIMIT_EXCEEDED = 509; | ||
export const NOT_EXTENDED = 510; | ||
export const NETWORK_AUTHENTICATION_REQUIRED = 511; | ||
export const WEB_SERVER_IS_DOWN = 521; | ||
export const CONNECTION_TIMED_OUT = 522; | ||
export const ORIGIN_IS_UNREACHABLE = 523; | ||
export const SSL_HANDSHAKE_FAILED = 525; | ||
export const SITE_FROZEN = 530; | ||
export const NETWORK_CONNECT_TIMEOUT_ERROR = 599; |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 contains 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 contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import type { NextAuthConfig } from 'next-auth'; | ||
|
||
import Discord from 'next-auth/providers/discord'; | ||
import { getSession } from '@/auth'; | ||
|
||
// eslint-disable-next-line | ||
const AUTH_SECRETS_SEP = ';;;;;;'; | ||
|
||
// const secret = process.env.AUTH_SECRETS!.split(AUTH_SECRETS_SEP); | ||
// {ToDo} Find a way to fix this | ||
// See also: https://github.com/nextauthjs/next-auth/issues/10633 | ||
const secret = 'huuuummmmm'; | ||
|
||
const config = { | ||
providers: [ | ||
Discord({ | ||
authorization: { | ||
params: { | ||
scope: 'identify+guilds' | ||
} | ||
}, | ||
clientSecret: process.env.DISCORD_CLIENT_SECRET ?? '', | ||
clientId: process.env.DISCORD_CLIENT_ID ?? '' | ||
}) | ||
], | ||
|
||
callbacks: { | ||
async session({ session }) { | ||
const s = await getSession(session); | ||
return s; | ||
} | ||
}, | ||
|
||
secret | ||
} as const satisfies NextAuthConfig; | ||
|
||
export default config; |
This file contains 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 contains 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 contains 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 contains 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
Oops, something went wrong.