-
Notifications
You must be signed in to change notification settings - Fork 57
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
auth revoke #500
auth revoke #500
Conversation
Code Climate has analyzed commit 5bb1a20 and detected 0 issues on this pull request. View more on Code Climate. |
@aryanbhosale The signout does not happen. The application behavior is same as before. |
@@ -7,6 +7,9 @@ import { getLogoutRedirectURI } from '../envUtil'; | |||
export interface CustomAuthContext { | |||
signoutRedirect: () => Promise<void>; | |||
removeUser: () => Promise<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious about the need for these empty functions. Do you know why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are just placeholders that i created as i was reading through the docs of oidc, later realising that theyre not used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no change in package.json. This file need not be changed.
@@ -29,7 +32,10 @@ export async function signOut() { | |||
localStorage.clear(); | |||
sessionStorage.clear(); | |||
|
|||
auth.stopSilentRenew(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please only use the functions that are needed and remove the rest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aryanbhosale Thanks for the PR. Please add tests as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay sir will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please only use the functions that are needed and remove the rest.
the stopSilent function ensures that it doesnt try to renew the token once it's logged out
No description provided.