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

auth revoke #500

Closed
wants to merge 1 commit into from
Closed

auth revoke #500

wants to merge 1 commit into from

Conversation

aryanbhosale
Copy link

No description provided.

Copy link

codeclimate bot commented Jan 31, 2024

Code Climate has analyzed commit 5bb1a20 and detected 0 issues on this pull request.

View more on Code Climate.

@prasadtalasila
Copy link
Contributor

@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>;
Copy link
Contributor

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?

Copy link
Author

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

Copy link
Contributor

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();
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Author

Choose a reason for hiding this comment

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

okay sir will do

Copy link
Author

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

@aryanbhosale aryanbhosale closed this by deleting the head repository Feb 10, 2024
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.

2 participants