Bearer token lifetime

Hi everyone,
is there a way to handle the time that a bearer token is valid before it expires?

I use the token to make requests to the tasklist api and the response is:
“expires_in”: 300,

Can I adjust this to my needs?
Thank you!

You have to configure your identity provider so that it issues token that are valid for a longer period of time. But you should always be prepared to handle the case that the token has expired.