Is there a way to rotate bearer tokens?

Hey everyone,

I’m using bearer tokens via bearer() plugin mainly for authentication on a mobile app.

So far I implemented auth on my backend api level, which is then used by my mobile app to login, grab the bearer from response body and set in `authorization’ header.

However, as I don’t want to require users to login every week to obtain a new bearer token, I would like to rotate it on specific activities (todo created successfully for example).

Did someone implemented something like this already?

Thanks
Was this page helpful?