Skip to content

v0.6.0

Choose a tag to compare

@stephank stephank released this 29 Nov 14:43
· 7 commits to main since this release
  • The authenticate method now takes an optional second argument state, which is returned by verify in your callback:

    -async authenticate(email: string): Promise<string>
    +async authenticate(email: string, state?: string): Promise<string>
  • BREAKING: The verify method now returns (a promise for) an object, so that it can also return the original state from the call to authenticate:

    -async verify(token: string): Promise<string> {
    +async verify(token: string): Promise<{ email: string; state?: string }> {