File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
references/nextjs-realtime/src/app Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export async function triggerExampleTask() {
14
14
console . log ( "Setting the run JWT in a cookie" , handle . publicAccessToken ) ;
15
15
16
16
// Set JWT in a secure, HTTP-only cookie
17
- cookies ( ) . set ( "run_jwt " , handle . publicAccessToken ) ;
17
+ cookies ( ) . set ( "run_token " , handle . publicAccessToken ) ;
18
18
19
19
// Redirect to the details page
20
20
redirect ( `/runs/${ handle . id } ` ) ;
@@ -34,10 +34,10 @@ export async function batchTriggerExampleTask() {
34
34
{ payload : { id : randomUUID ( ) } } ,
35
35
] ) ;
36
36
37
- console . log ( "Setting the run JWT in a cookie" , handle . jwt ) ;
37
+ console . log ( "Setting the run JWT in a cookie" , handle . publicAccessToken ) ;
38
38
39
39
// Set JWT in a secure, HTTP-only cookie
40
- cookies ( ) . set ( "run_jwt " , handle . jwt ) ;
40
+ cookies ( ) . set ( "run_token " , handle . publicAccessToken ) ;
41
41
42
42
// Redirect to the details page
43
43
redirect ( `/batches/${ handle . batchId } ` ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import ClientBatchRunDetails from "./ClientBatchRunDetails";
4
4
5
5
export default async function DetailsPage ( { params } : { params : { id : string } } ) {
6
6
const cookieStore = cookies ( ) ;
7
- const jwt = cookieStore . get ( "run_jwt " ) ;
7
+ const jwt = cookieStore . get ( "run_token " ) ;
8
8
9
9
if ( ! jwt ) {
10
10
notFound ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import ClientRunDetails from "./ClientRunDetails";
4
4
5
5
export default async function DetailsPage ( { params } : { params : { id : string } } ) {
6
6
const cookieStore = cookies ( ) ;
7
- const jwt = cookieStore . get ( "run_jwt " ) ;
7
+ const jwt = cookieStore . get ( "run_token " ) ;
8
8
9
9
if ( ! jwt ) {
10
10
notFound ( ) ;
You can’t perform that action at this time.
0 commit comments