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

AutoFleet API: How to deal with expired refreshToken #852

Open
joseuride opened this issue Oct 7, 2024 · 1 comment
Open

AutoFleet API: How to deal with expired refreshToken #852

joseuride opened this issue Oct 7, 2024 · 1 comment

Comments

@joseuride
Copy link

joseuride commented Oct 7, 2024

Hi team,

I'm currently working with https://docs.autofleet.io/reference/post-v1-login-refresh API on Mobile app.
The first time I call the login/refresh API, I have used the refreshToken as a parameter (downloaded from the Admin page). I’m currently storing it as a constant in the app. This could lead to problems when the refreshToken expires after about three months.
I also noticed that the documentation suggests saving the new refreshToken from the response to avoid expiration. Yes, I understand, but the issue is that during the first login/refresh call, I am storing the refreshToken (downloaded from Admin) as a constant in the app, which causes the refreshToken to expire after some time.
Is there a way to handle this issue besides having to download a new refreshToken from Admin page?

image (3)

@joseuride joseuride changed the title AutoFleet API: RefreshToken expired AutoFleet API: How to deal with expired refreshToken Oct 7, 2024
@Porat34
Copy link

Porat34 commented Oct 8, 2024

Hi Jose,
I'm afraid that due to security purposes it is not possible to override the current process.
But it shouldn't expire too often as mentioned in the "Managing refresh tokens" instructions, about every 3 months.

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

No branches or pull requests

2 participants