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

[Question]: Manual token refreshing #1989

Open
RFMV34 opened this issue Aug 12, 2024 · 0 comments
Open

[Question]: Manual token refreshing #1989

RFMV34 opened this issue Aug 12, 2024 · 0 comments
Labels

Comments

@RFMV34
Copy link

RFMV34 commented Aug 12, 2024

Hi,
How can I refresh tokens manually?

The library refreshes tokens even, when the user is not active, but due to security we need to expire the session, when the user is not active. We need to turn off the automatic token refreshing and perform token refreshing on our own when for example user moves with a mouse and the token is near expiration.

I tried forceRefreshSession it works, but when live recompile the Angular application, I get HTTP status 400 on the token requests.
The request payload is

grant_type=authorization_code&client_id=xa-web-client&code_verifier=cb66df40e11dd6e132126485aa792e05fc817e956d10c44588c3383bb8ffxiOc6Co&code=e33f377b-ea1a-4ccb-9f5c-6e95fb52b228.688bd5b5-71f8-4b22-a770-5c5bb594a466.ac773b5d-fdcc-4653-b29a-cef2cca8e7ac&redirect_uri=https%3A%2F%2Fplease_set

So the problem is https%3A%2F%2Fplease_set
The response is

{"error":"invalid_grant","error_description":"Incorrect redirect_uri"}

It looks like, it is ignoring the config.

Any advice, please?

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

No branches or pull requests

1 participant