I've experimented with various strategies, but I still couldn't make it work.
Here's the recommendation from Pocketbase ():
loginWithGoogle: async ({ locals }: { locals: App.Locals }) => {
await locals.pb.collection('users').authWithOAuth2({ provider: 'google' });
}
The above code snippet is an action triggered when a user interacts with a specific UI button.
Despite my efforts, I keep encountering the following error:
ClientResponseError 0: Something went wrong while processing your request.
at new ClientResponseError (file:///home/kraktoos/Dev/Projects/pap/web/node_modules/.pnpm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d4a4bbb7bfb1a0b6b5a7b194e4fae5e1fae6">[email protected]</a>/node_modules/pocketbase/dist/pocketbase.es.mjs:1:2306)
...