Token Based Auth with PocketBase

Hi there,

New to WeWeb :victory_hand:t2:

I’d like to use the Token Based Auth plugin with PocketBase.

Unfortunately I can’t use Fetch User through workflow because the user endpoint is :

/api/collections/users/records/:id

And the plugin can’t add variable in request (cf. user id).

Do you plan to add this feature and the ability to set the HTTP method ?

Cheers.

Edit : endpoint can be edited in PocketBase to work without user id paramter :partying_face:

Hi, you can use the REST API plugin to fetch any API via HTTP and of course also set the method, parameters etc.

Thank you for your reply.

Of course, but I’d like to use the Token Based Auth plugin to don’t have to set variables and logics about if user is logged in or not etc.

1 Like

Hi Art and welcome to the community :waving_hand:

Our native auth system was developed to help you test features and debug.

I recommend you use your own backend authentication system to develop your app.

I see pocketbase already has that auth system, you will need to set it up like Broberto said, with an REST API call.