Skip to content

Commit

Permalink
Merge pull request #75 from TheLab-ms/Newest_QR_Branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ATechAdventurer authored Dec 11, 2023
2 parents c65963e + ad6950e commit 3638f84
Show file tree
Hide file tree
Showing 15 changed files with 788 additions and 131 deletions.
10 changes: 10 additions & 0 deletions modules.d.ts
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;
}
}
31 changes: 31 additions & 0 deletions next-auth.d.ts
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[];
}
}
237 changes: 117 additions & 120 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
"eslint-config-next": "13.4.19",
"framer-motion": "^10.16.4",
"next": "^14.0.3",
"next-auth": "^4.24.5",
"next-themes": "^0.2.1",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"qrcode-generator": "^1.4.4",
"react": "18.2.0",
"react-calendar": "^4.6.1",
"react-dom": "18.2.0",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.5",
"typescript": "5.2.2"
},
Expand Down
Loading

0 comments on commit 3638f84

Please sign in to comment.