Skip to content

Commit

Permalink
Merge pull request #29 from ImageMarkup/redirect-url
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba authored Feb 28, 2022
2 parents 967eebd + 0ba7274 commit 7361554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/isic-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import OauthClient from '@girder/oauth-client';
export interface IsicClientOptions {
isicOrigin?: URL;
scopes?: string[];
redirectUrl?: URL;
}

export default class IsicClient extends OauthClient {
Expand All @@ -12,7 +13,8 @@ export default class IsicClient extends OauthClient {
clientId: string,
{
isicOrigin = new URL('https://api.isic-archive.com'),
scopes = [],
scopes,
redirectUrl,
}: IsicClientOptions = {},
) {
const cleanedIsicOrigin = new URL(isicOrigin);
Expand All @@ -26,6 +28,7 @@ export default class IsicClient extends OauthClient {
clientId,
{
scopes,
redirectUrl,
},
);
this.isicOrigin = cleanedIsicOrigin;
Expand Down

0 comments on commit 7361554

Please sign in to comment.