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

Create long access_token #222

Open
mtmibjas opened this issue Jun 1, 2022 · 1 comment
Open

Create long access_token #222

mtmibjas opened this issue Jun 1, 2022 · 1 comment

Comments

@mtmibjas
Copy link

mtmibjas commented Jun 1, 2022

How can I create a long access token? what is the configuration I need to do for that?

the current result of token creation

{ "access_token": "SAC112Y-OICIQDCTA7WXPQ", "expires_in": 3600, "scope": "*", "token_type": "Bearer" }

@realbucksavage
Copy link

Take a look at manage.MapAccessGenerate and oauth2.AccessGenerate.

You can create long JWTs in your oauth2.AccessGenerate, and map it like this:

manager := manage.NewDefaultManager()
manager.MapAccessGenerate(yourCustomGenerate)

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