Skip to content

Commit 2965a1d

Browse files
authored
CG-2274: Implement Refresh-token to Music Festival sample site (#42)
# CG-2274: Implement Refresh-token to Music Festival sample site - Use refresh token to renew access token
2 parents 5a8a76b + c475ad4 commit 2965a1d

File tree

12 files changed

+279
-890
lines changed

12 files changed

+279
-890
lines changed

samples/musicfestival-frontend-nextjs/.env.local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ AZURE_AD_TENANT_ID=7c4a1b79-4b8e-4ac7-b7e1-c5c3c5a4c139
55
OKTA_CLIENT_ID=0oa7c6ejkpzJ0CtcS1d7
66
OKTA_ISSUER=https://prep.login.optimizely.com
77
NEXTAUTH_SECRET=JU1SARGXlbKHEIurfAQMtKu8j3ORBoGczJIzMJswVuk
8-
NEXT_PUBLIC_CONTENT_GRAPH_ENDPOINT=http://localhost:4000/content/v2?auth=ecAFyEXbIUuRGHoDSfgEDJmJMvvZVNVDMG2ciS4ri4PgfeTA&cache=false
8+
NEXT_PUBLIC_CONTENT_GRAPH_ENDPOINT=http://localhost:4000/content/v2?auth=OJHH4nplceEZKxBUsJDNlHnWSSPPZBxxW3reRvFAuEYynRsQ&cache=false
99

1010
NEXT_PUBLIC_CG_PROXY_URL=http://localhost:8082/EpiServer/ContentGraph/CGProxy/Query
1111

1212
NEXT_PUBLIC_LOGIN_AUTHORITY="http://localhost:8082"
13-
NEXT_PUBLIC_LOGIN_CLIENT_ID=frontend
13+
NEXT_PUBLIC_EPISERVER_CLIENT_ID=frontend
1414

1515
NEXT_PUBLIC_APPINSIGHTS_CONN_STR=
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Next.js: debug server-side",
6+
"type": "node-terminal",
7+
"request": "launch",
8+
"command": "npm run dev"
9+
},
10+
{
11+
"name": "Next.js: debug client-side",
12+
"type": "chrome",
13+
"request": "launch",
14+
"url": "http://localhost:3000"
15+
},
16+
{
17+
"name": "Next.js: debug full stack",
18+
"type": "node-terminal",
19+
"request": "launch",
20+
"command": "npm run dev",
21+
"serverReadyAction": {
22+
"pattern": "- Local:.+(https?://.+)",
23+
"uriFormat": "%s",
24+
"action": "debugWithChrome"
25+
}
26+
}
27+
]
28+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const prod = process.env.NODE_ENV === 'production'
2+
export const baseUrl = prod ? process.env.NEXTAUTH_URL : (process.env.VERCEL_URL ?? process.env.NEXTAUTH_URL)

0 commit comments

Comments
 (0)