-
Notifications
You must be signed in to change notification settings - Fork 828
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
Accessing APIs from both application and postman - team and token verification #1909
Comments
The API keys generated don’t have any expiry until you delete them. Can you debug it to see where that unauthorised call is coming from and why. |
You will have to customize middleware.ts to suit your needs for the new API routes, for instance we do something like this:-
The customized |
Hi, please suggest if i am missing something here . |
Currently API keys are associated with the team, if you need it to be associated with users then you will have to made modifications to the schema and functionality. |
ok. Thank you |
Continuing from Previous Issue
Hi, I want one of the APIs to be also used with a postman / curl along with website session access.
If I generate the API key from login and use it with postman, its only working once. the second call throws the
unauthorised
error. Is there a way to generate long running tokens in this saas-starter-kit ?Additionally, the
pages/api/**
files have validation for team verification like below. How does this work for postman API calls ? I don't want to comment out this code as the web application still needs this validation.Is there any other alternative to implement this approach ?
The text was updated successfully, but these errors were encountered: