-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added fetch session in all axios calls * switch off sentry in development mode * reduced accessTokenExpires with 10secs and replaced getSession with getServerSession as per next-auth recommendation * fixed lint errors * restored original value of refetch * formatting * restored QueryClient defaultOptions to have queryFn * updated getSession with getServerSession for the remaining getServerSideProps Co-authored-by: quantum-grit <quantum-grit@gmail.com>
- Loading branch information
1 parent
c84abb6
commit c5572da
Showing
12 changed files
with
134 additions
and
84 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
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,30 @@ | ||
import NextAuth from 'next-auth' | ||
|
||
/** | ||
* Declaring the Session and User type as per docs here: | ||
* https://next-auth.js.org/getting-started/typescript#main-module | ||
**/ | ||
|
||
declare module 'next-auth' { | ||
// export interface Profile {} | ||
// export interface Account {} | ||
|
||
/** | ||
* Session object available everywhere | ||
*/ | ||
export interface Session { | ||
accessToken: string | ||
refreshToken: string | ||
user: ServerUser | null | ||
} | ||
|
||
/** | ||
* Login and SignUp response | ||
*/ | ||
export interface User { | ||
expires: number | ||
accessToken: string | ||
refreshToken: string | ||
picture: 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
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
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.