Skip to content

Commit 8624709

Browse files
committed
chore: make profileUrl accessToken optional in SDK
* Propagates changes from casdoor#62
1 parent ac29cfd commit 8624709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,11 +640,11 @@ export class SDK {
640640
return this.urlSDK.getSignInUrl(redirectUri)
641641
}
642642

643-
public getUserProfileUrl(userName: string, accessToken: string) {
643+
public getUserProfileUrl(userName: string, accessToken?: string) {
644644
return this.urlSDK.getUserProfileUrl(userName, accessToken)
645645
}
646646

647-
public getMyProfileUrl(accessToken: string) {
647+
public getMyProfileUrl(accessToken?: string) {
648648
return this.urlSDK.getMyProfileUrl(accessToken)
649649
}
650650
}

0 commit comments

Comments
 (0)