Generating user tokens for login

Generating user tokens for login

Hello. I see when I click the "login as user" button, a token is generated.

Is there a way to create and manage your own tokens using the API?

I want to make a token for a run user where I can control the expiration of the token.

This is so I can share links to login that expire after 7 days, for instance.

Caio