8000 Add RequestAuthorizer.clearToken() by sharplet · Pull Request #36 · thoughtbot/Superb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add RequestAuthorizer.clearToken() #36

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

Merged
merged 2 commits into from
Aug 21, 2017
Merged

Add RequestAuthorizer.clearToken() #36

merged 2 commits into from
Aug 21, 2017

Conversation

sharplet
Copy link
Contributor

Adds the ability to manually "log out" by deleting the token from the underlying token storage.

Fixes #35.

describe("clearToken") {
it("removes the token from token storage") {
let testTokenStorage = SimpleTokenStorage(token: "some-token")
let authorizer = RequestAuthorizer(authorizationProvider: TestAuthenticationPro 8000 vider(), tokenStorage: testTokenStorage)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 127 characters (line_length)

Adds the ability to manually "log out" by deleting the token from the
underlying token storage.
@sharplet sharplet merged commit 4a7ce3e into master Aug 21, 2017
@sharplet sharplet deleted the as-clear-token branch August 21, 2017 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0