Repository navigation
v0.6.0
-
The
authenticatemethod now takes an optional second argumentstate, which is returned byverifyin your callback:-async authenticate(email: string): Promise<string> +async authenticate(email: string, state?: string): Promise<string>
-
BREAKING: The
verifymethod now returns (a promise for) an object, so that it can also return the originalstatefrom the call toauthenticate:-async verify(token: string): Promise<string> { +async verify(token: string): Promise<{ email: string; state?: string }> {