packages/core: minor auth text fixes + reduntant has

This commit is contained in:
Patrik Oldsberg
2020-05-22 15:26:27 +02:00
parent c1b76913a0
commit a22a9cbfdd
2 changed files with 3 additions and 5 deletions
@@ -49,9 +49,7 @@ export function joinScopes(
for (const moreScopes of moreScopess) {
for (const scope of moreScopes) {
if (!result.has(scope)) {
result.add(scope);
}
result.add(scope);
}
}
@@ -40,11 +40,11 @@ type Options<AuthSession> = {
*/
provider: AuthProvider & { id: string };
/**
* API used to instanciate an auth requester.
* API used to instantiate an auth requester.
*/
oauthRequestApi: OAuthRequestApi;
/**
* Function used to join together a set of scopes, defaults to joining with whitespace.
* Function used to join together a set of scopes, defaults to joining with a space character.
*/
joinScopes?: (scopes: Set<string>) => string;
/**