Comparing version 3.2.1 to 3.3.0
@@ -71,2 +71,10 @@ "use strict"; | ||
create(data) { | ||
return (0, _shared.request)(this.client, { | ||
method: "POST", | ||
url: this.base_path, | ||
data: data | ||
}); | ||
} | ||
authenticate(token, data) { | ||
@@ -73,0 +81,0 @@ return (0, _shared.request)(this.client, { |
{ | ||
"name": "stytch", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"description": "A wrapper for the Stytch API", | ||
@@ -5,0 +5,0 @@ "types": "./types/lib/index.d.ts", |
@@ -41,2 +41,11 @@ import { Session } from "./shared"; | ||
} | ||
export interface CreateRequest { | ||
user_id: string; | ||
expiration_minutes?: number; | ||
attributes?: Attributes; | ||
} | ||
export interface CreateResponse extends BaseResponse { | ||
token: string; | ||
user_id: string; | ||
} | ||
export interface AuthenticateRequest { | ||
@@ -79,4 +88,5 @@ options?: { | ||
private endpoint; | ||
create(data: CreateRequest): Promise<CreateResponse>; | ||
authenticate(token: string, data?: AuthenticateRequest): Promise<AuthenticateResponse>; | ||
} | ||
export {}; |
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
36100
890