File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { SignJWT } from "jose" ;
2
2
import { NextRequest , NextResponse } from "next/server" ;
3
- import { getJwtSecretKey , workos , getClientId } from "../../../ auth" ;
3
+ import { getJwtSecretKey , workos , getClientId } from "../../auth" ;
4
4
5
5
export async function GET ( request : NextRequest ) {
6
6
const code = request . nextUrl . searchParams . get ( "code" ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export async function Footer() {
4
4
return (
5
5
< Grid columns = { { initial : "1" , sm : "3" } } gap = "5" >
6
6
< Card size = "4" asChild variant = "classic" >
7
- < a href = "https://workos.com/docs" >
7
+ < a href = "https://workos.com/docs" rel = "noreferrer" target = "_blank" >
8
8
< Heading size = "4" mb = "1" >
9
9
Documentation
10
10
</ Heading >
@@ -14,7 +14,11 @@ export async function Footer() {
14
14
</ a >
15
15
</ Card >
16
16
< Card size = "4" asChild variant = "classic" >
17
- < a href = "https://workos.com/docs/reference" >
17
+ < a
18
+ href = "https://workos.com/docs/reference"
19
+ rel = "noreferrer"
20
+ target = "_blank"
21
+ >
18
22
< Heading size = "4" mb = "1" >
19
23
API Reference
20
24
</ Heading >
@@ -24,7 +28,7 @@ export async function Footer() {
24
28
</ a >
25
29
</ Card >
26
30
< Card size = "4" asChild variant = "classic" >
27
- < a href = "https://workos.com" >
31
+ < a href = "https://workos.com" rel = "noreferrer" target = "_blank" >
28
32
< Heading size = "4" mb = "1" >
29
33
WorkOS
30
34
</ Heading >
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export async function getAuthorizationUrl() {
21
21
provider : "authkit" ,
22
22
clientID : getClientId ( ) ,
23
23
// The endpoint that WorkOS will redirect to after a user authenticates
24
- redirectURI : "http://localhost:3000/api/ callback" ,
24
+ redirectURI : "http://localhost:3000/callback" ,
25
25
} ) ;
26
26
27
27
return authorizationUrl ;
You can’t perform that action at this time.
0 commit comments