Hola Soy Yigs
Hola Soy Yigs
BABetter Auth
Created by Hola Soy Yigs on 4/20/2025 in #help
Client-side user impersonation in Better-Auth with OpenAPI-TS: Why does it fail?
Hi everyone, I need a hand implementing a method for updating a user's data from another user with elevated permissions. I could get my hands a little dirty creating my own endpoint or service to do this, but I think the tool will have a better way to do it. I'm currently creating a basic dashboard to get an idea of ​​how to use the tool built with React Router 7 (REMIX.js). I'd like to believe I'm one of the few crazy people using better-auth from outside the client, since my plan is to stick to the open-api standard offered by one of its plugins. In this case, using openapi-ts/openapi-query from the browser client side. (The reason is that there are no clients for other platforms hehe, [.NET, SPRING, FLUTTER, Machine to Machine], and you can't always compromise with the methods offered directly by the client, as if it were an SDK) I understand there's a way, which is through identity theft using the admin plugin, but I'm experiencing strange behavior when reloading my application's page, and it returns an error message saying "You are not allowed to impersonate users." If I log in as my own user, nothing strange happens, but if I log in as another user, that's where it breaks, and I don't quite understand why.
20 replies
BABetter Auth
Created by Hola Soy Yigs on 11/28/2024 in #bug-reports
Fix support to Bunx
No description
1 replies
BABetter Auth
Created by Hola Soy Yigs on 11/27/2024 in #bug-reports
Example Support Auth Remix.js
No description
50 replies