File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export async function GET(request: NextRequest) {
8
8
if ( code ) {
9
9
try {
10
10
// Use the code returned to us by AuthKit and authenticate the user with WorkOS
11
- const { user } = await workos . users . authenticateWithCode ( {
11
+ const { user } = await workos . userManagement . authenticateWithCode ( {
12
12
clientId : getClientId ( ) ,
13
13
code,
14
14
} ) ;
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ export function getClientId() {
17
17
}
18
18
19
19
export async function getAuthorizationUrl ( ) {
20
- const authorizationUrl = workos . sso . getAuthorizationURL ( {
20
+ const authorizationUrl = workos . userManagement . getAuthorizationURL ( {
21
21
provider : "authkit" ,
22
- clientID : getClientId ( ) ,
22
+ clientId : getClientId ( ) ,
23
23
// The endpoint that WorkOS will redirect to after a user authenticates
24
- redirectURI : "http://localhost:3000/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