feat(supabase): auth, profile and roles services; professional columns on profiles; OAuth + TOTP config
- packages/supabase: signIn/signUp/OAuth/reset/updatePassword/signOut wrappers with a closed AuthFailure kind, fetch/update own profile, own platform roles - migration 20261011100000: practice_name, professional_title, siret (format-checked, column grants); pgTAP 009; database.types regenerated - config.toml: TOTP enroll/verify on, [auth.external.google|apple] via env(), wildcard redirect URLs - app config: authProviders (APP_AUTH_PROVIDERS / VITE_AUTH_PROVIDERS), entrypoint env.js, DEPLOY table - TODO: Step 7 plan
This commit is contained in:
1 parent
c746952d7f
commit
b10b227ee9
13 files changed
+427
-10
No files matched your search
@@ -15,12 +15,32 @@ export { Constants } from './database.types'
|
||||
|
||||
import type { Enums, Tables } from './database.types'
|
||||
|
||||
/** Row of public.profiles. */
|
||||
export type Profile = Tables<'profiles'>
|
||||
/** Row of public.profile_roles. */
|
||||
export type ProfileRole = Tables<'profile_roles'>
|
||||
export {
|
||||
AuthFailure,
|
||||
classifyAuthError,
|
||||
sendPasswordReset,
|
||||
signInWithOAuth,
|
||||
signInWithPassword,
|
||||
signOut,
|
||||
signUpWithPassword,
|
||||
updatePassword,
|
||||
type AuthFailureKind,
|
||||
type EmailPasswordCredentials,
|
||||
type OAuthProvider,
|
||||
type SignUpInput,
|
||||
type SignUpResult,
|
||||
} from './auth'
|
||||
export {
|
||||
fetchOwnProfile,
|
||||
ProfileError,
|
||||
updateOwnProfile,
|
||||
type OwnProfilePatch,
|
||||
type Profile,
|
||||
} from './profiles'
|
||||
/** owner | admin | moderator | support. Not a professional status. */
|
||||
export type PlatformRole = Enums<'platform_role'>
|
||||
export { fetchOwnPlatformRoles, type PlatformRole } from './platform-roles'
|
||||
export { publishSheetVersion } from './anatomical-sheets'
|
||||
|
||||
/** Row of public.species. */
|
||||
|
||||
Reference in new issue
Block a user