Skip to content
Snippets Groups Projects
Commit e6fdd6f1 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

add mising NEXTAUTH_TOKEN_ENDPOINT

parent ee46b705
No related branches found
No related tags found
1 merge request!34add refresh token logic
Pipeline #88838 passed
...@@ -17,6 +17,7 @@ NEXTAUTH_CLIENT_SECRET="YOUR_OIDC_CLIENT_SECRET" ...@@ -17,6 +17,7 @@ NEXTAUTH_CLIENT_SECRET="YOUR_OIDC_CLIENT_SECRET"
NEXTAUTH_SECRET="SOhxHLn53mV7ML7y8L6rL5oOQxOVb0V4p2Ez0ZSIuOs=" # openssl rand -base64 32 NEXTAUTH_SECRET="SOhxHLn53mV7ML7y8L6rL5oOQxOVb0V4p2Ez0ZSIuOs=" # openssl rand -base64 32
NEXTAUTH_ISSUER="https://proxy.aai.geant.org" NEXTAUTH_ISSUER="https://proxy.aai.geant.org"
NEXTAUTH_WELL_KNOWN_OVERRIDE="https://proxy.aai.geant.org/.well-known/openid-configuration" NEXTAUTH_WELL_KNOWN_OVERRIDE="https://proxy.aai.geant.org/.well-known/openid-configuration"
NEXTAUTH_TOKEN_ENDPOINT="https://proxy.aai.geant.org/OIDC/token"
# docker-compose variables # docker-compose variables
# KEYCLOAK_ADMIN=admin # KEYCLOAK_ADMIN=admin
......
...@@ -21,7 +21,7 @@ async function refreshAccessToken(token: JWT): Promise<JWT> { ...@@ -21,7 +21,7 @@ async function refreshAccessToken(token: JWT): Promise<JWT> {
refresh_token: token.refreshToken as string, refresh_token: token.refreshToken as string,
}); });
const response = await fetch(process.env.TOKEN_ENDPOINT!, { const response = await fetch(process.env.NEXTAUTH_TOKEN_ENDPOINT!, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment