@workos-inc/node
Advanced tools
Comparing version 0.9.5 to 0.9.6
{ | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"name": "@workos-inc/node", | ||
@@ -4,0 +4,0 @@ "author": "WorkOS", |
export interface CommonAuthorizationURLOptions { | ||
connection?: string; | ||
domain?: string; | ||
@@ -3,0 +4,0 @@ provider?: string; |
@@ -15,3 +15,3 @@ import { AuthorizationURLOptions } from './interfaces/authorization-url-options.interface'; | ||
deleteConnection(id: string): Promise<void>; | ||
getAuthorizationURL({ clientID, domain, provider, projectID, redirectURI, state, }: AuthorizationURLOptions): string; | ||
getAuthorizationURL({ connection, clientID, domain, provider, projectID, redirectURI, state, }: AuthorizationURLOptions): string; | ||
getConnection(id: string): Promise<Connection>; | ||
@@ -18,0 +18,0 @@ getProfile({ code, clientID, projectID, }: GetProfileOptions): Promise<Profile>; |
@@ -32,7 +32,8 @@ "use strict"; | ||
} | ||
getAuthorizationURL({ clientID, domain, provider, projectID, redirectURI, state, }) { | ||
if (!domain && !provider) { | ||
throw new Error(`Incomplete arguments. Need to specify either a 'domain' or 'provider'.`); | ||
getAuthorizationURL({ connection, clientID, domain, provider, projectID, redirectURI, state, }) { | ||
if (!domain && !provider && !connection) { | ||
throw new Error(`Incomplete arguments. Need to specify either a 'connection', 'domain', or 'provider'.`); | ||
} | ||
const query = query_string_1.default.stringify({ | ||
connection, | ||
domain, | ||
@@ -39,0 +40,0 @@ provider, |
{ | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"name": "@workos-inc/node", | ||
@@ -4,0 +4,0 @@ "author": "WorkOS", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50560
1057