diff --git a/src/sdk.ts b/src/sdk.ts index 2fdf088..8b19378 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -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) } } diff --git a/src/url.ts b/src/url.ts index 97dc811..af8368b 100644 --- a/src/url.ts +++ b/src/url.ts @@ -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) }