-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from TheLab-ms/Newest_QR_Branch
- Loading branch information
Showing
15 changed files
with
788 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
declare namespace NodeJS{ | ||
export interface ProcessEnv{ | ||
NEXT_PUBLIC_NEXTAUTH_URL : string; | ||
NEXTAUTH_SECRET : string; | ||
KEYCLOAK_BASE_URL : string; | ||
KEYCLOAK_REALM : string; | ||
KEYCLOAK_CLIENT_ID: string; | ||
KEYCLOAK_CLIENT_SECRET: string; | ||
} | ||
} |
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,31 @@ | ||
import 'next-auth/jwt'; | ||
|
||
// Read more at: https://next-auth.js.org/getting-started/typescript#module-augmentation | ||
|
||
declare module 'next-auth/jwt' { | ||
interface JWT { | ||
discord?: string; | ||
username: string; | ||
groups: string[]; | ||
} | ||
} | ||
|
||
declare module 'next-auth' { | ||
export interface Session { | ||
user: { | ||
email: any; | ||
name: any; | ||
id: string; | ||
discord: string; | ||
username: string; | ||
groups: string[]; | ||
image?: string; | ||
}; | ||
} | ||
|
||
export interface Profile { | ||
discord?: string; | ||
preferred_username: string; | ||
groups: string[]; | ||
} | ||
} |
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
Oops, something went wrong.