Is there any way to validate the Pocketbase autentication using an external backend? #4986
-
I am going to create an application and I want to use pocketbase for the simplicity of authentication and data collection, plus I can host it by myself easily, but I also need custom functionality, so I want to create my own microservices and authenticate the users with the pocketbase JWT, in services like Supabase there are functions like getUser that receive the JWT and check if it is valid from the server side, is there any way to do this with pocketbase? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can find the available auth Web APIs in https://pocketbase.io/docs/api-records/#auth-record-actions. Sending Auth refresh requests will validate the You can also use the View record API ( |
Beta Was this translation helpful? Give feedback.
You can find the available auth Web APIs in https://pocketbase.io/docs/api-records/#auth-record-actions.
Sending Auth refresh requests will validate the
Authorization: TOKEN
header and on success will return a new token with updatedexp
claim and the latest user data. On invalid or expired token returns an error response.You can also use the View record API (
getOne
) for the specific user but this depends on yourusers
collection View API rule.