Jon
Jon
BABetter Auth
Created by Jon on 3/3/2025 in #help
What does this TypeScript error (red squiggly) mean?
Property 'signInWithOAuth2' does not exist on type 'InferAPI<{ ok: { <C extends [({ body?: undefined; method?: "GET" | undefined; query?: Record<string, any> | undefined; params?: Record<string, any> | undefined; request?: Request | undefined; headers?: HeadersInit | undefined; asResponse?: boolean | undefined; returnHeaders?: boolean | undefined; use?: better_call.M...'.ts(2339)
Property 'signInWithOAuth2' does not exist on type 'InferAPI<{ ok: { <C extends [({ body?: undefined; method?: "GET" | undefined; query?: Record<string, any> | undefined; params?: Record<string, any> | undefined; request?: Request | undefined; headers?: HeadersInit | undefined; asResponse?: boolean | undefined; returnHeaders?: boolean | undefined; use?: better_call.M...'.ts(2339)
2 replies
BABetter Auth
Created by Jon on 2/22/2025 in #help
Create a SSO provider without having to insert it at runtime?
When using the SSO plugin https://www.better-auth.com/docs/plugins/sso it's weird there is no simple comfig for the proivder like there is with the GenericOAuth2 - instead it needs to be inserted by a logged-in user at runtime - and then remains tied to that user forever. I'm I missing something? If I should just use GenericOAuth2, is there a way to provision new users like you can with the SSO plugin - it would be great to be able to assign all users to a specific organization.
2 replies