Skip to content

Commit

Permalink
feat: make profileUrl accessToken optional in SDK (#63)
Browse files Browse the repository at this point in the history
* chore: make profileUrl accessToken optional in SDK

* Propagates changes from #62

* fix: extra `}` at the end of getSignUpUrl

* Similar to 62
  • Loading branch information
elierotenberg authored Jun 7, 2024
1 parent ac29cfd commit 867f7e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,11 @@ export class SDK {
return this.urlSDK.getSignInUrl(redirectUri)
}

public getUserProfileUrl(userName: string, accessToken: string) {
public getUserProfileUrl(userName: string, accessToken?: string) {
return this.urlSDK.getUserProfileUrl(userName, accessToken)
}

public getMyProfileUrl(accessToken: string) {
public getMyProfileUrl(accessToken?: string) {
return this.urlSDK.getMyProfileUrl(accessToken)
}
}
2 changes: 1 addition & 1 deletion src/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class UrlSDK {

public getSignUpUrl(enablePassword: boolean, redirectUri: string): string {
if (enablePassword) {
return `${this.config.endpoint}/signup/${this.config.appName}}`
return `${this.config.endpoint}/signup/${this.config.appName}`
} else {
return this.getSignUrl('signup', redirectUri)
}
Expand Down

0 comments on commit 867f7e1

Please sign in to comment.