-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement refresh access token logic
Add refresh token logic - Add function to the auth route to check the expiry of the token and attempt a refresh against the OIDC provider endpoint - Add necessary fields to next-auth types
- Loading branch information
Showing
3 changed files
with
64 additions
and
2 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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
OIDC_AUTHORITY= | ||
OIDC_CLIENT_ID= | ||
OIDC_CLIENT_SECRET= | ||
OIDC_TOKEN_ENDPOINT= | ||
|
||
API_BASE='http://phpreport-api:8555' | ||
NEXT_PUBLIC_API_BASE='http://0.0.0.0:8555' | ||
|
||
NEXTAUTH_URL=http://0.0.0.0:5173/web/v2/api/auth | ||
NEXTAUTH_SECRET="" | ||
NEXTAUTH_SECRET="" |
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