Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the signOut Feature #34

Closed
rishabhpoddar opened this issue Oct 28, 2020 · 3 comments
Closed

Implement the signOut Feature #34

rishabhpoddar opened this issue Oct 28, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@rishabhpoddar
Copy link
Contributor

rishabhpoddar commented Oct 28, 2020

@rishabhpoddar rishabhpoddar added the enhancement New feature or request label Oct 28, 2020
@rishabhpoddar
Copy link
Contributor Author

rishabhpoddar commented Oct 28, 2020

Functions exposed by this feature (Not needed - see edit)

signOut() => Promise<void>
THROWS:
- {errType: "GENERAL_ERROR", message: string}

Edit:

There is no need for this function since it's just a wrapper around session revoke.

@rishabhpoddar
Copy link
Contributor Author

rishabhpoddar commented Oct 28, 2020

APIs implemented by this feature

SignOut API

https://github.com/supertokens/frontend-driver-interface/blob/master/v1.3.0.md#logout-api

  1. Verify session
    • If no session exists, return 200
  2. Revoke session
  3. Return 200

@rishabhpoddar
Copy link
Contributor Author

Config given to init

signOutFeature: {
   disableDefaultImplementation: true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant