@nuxtbase/auth-ui-vue
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -1,3 +0,2 @@ | ||
import { ViewType } from '@supabase/auth-ui-shared'; | ||
import { AuthProps } from '../types'; | ||
import { AuthProps, AuthViewType } from '../types'; | ||
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AuthProps>, { | ||
@@ -12,2 +11,3 @@ view: string; | ||
otpType: string; | ||
anonymouslyCredentials: undefined; | ||
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
@@ -24,8 +24,10 @@ "update:view": (...args: any[]) => void; | ||
otpType: string; | ||
anonymouslyCredentials: undefined; | ||
}>>> & { | ||
"onUpdate:view"?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
dark: boolean; | ||
view: AuthViewType; | ||
anonymouslyCredentials: import("@supabase/supabase-js").SignInAnonymouslyCredentials; | ||
theme: string; | ||
view: ViewType; | ||
dark: boolean; | ||
magicLink: boolean; | ||
@@ -32,0 +34,0 @@ showLinks: boolean; |
import { SupabaseClient } from '@supabase/supabase-js'; | ||
import { I18nVariables, RedirectTo } from '@supabase/auth-ui-shared'; | ||
import { type Appearance } from '../types'; | ||
import { RedirectTo } from '@supabase/auth-ui-shared'; | ||
import { type Appearance, type AuthI18nVariables } from '../types'; | ||
export interface EmailAuthProps { | ||
@@ -12,3 +12,3 @@ appearance?: Appearance; | ||
showLinks?: boolean; | ||
i18n?: I18nVariables; | ||
i18n?: AuthI18nVariables; | ||
additionalData?: { | ||
@@ -15,0 +15,0 @@ [key: string]: any; |
import { SupabaseClient } from '@supabase/supabase-js'; | ||
import { I18nVariables, RedirectTo } from '@supabase/auth-ui-shared'; | ||
import { type Appearance } from '../types'; | ||
import { RedirectTo } from '@supabase/auth-ui-shared'; | ||
import { type Appearance, type AuthI18nVariables } from '../types'; | ||
export interface ForgottenPasswordProps { | ||
@@ -9,3 +9,3 @@ appearance?: Appearance; | ||
showLinks?: boolean; | ||
i18n?: I18nVariables; | ||
i18n?: AuthI18nVariables; | ||
} | ||
@@ -12,0 +12,0 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgottenPasswordProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ForgottenPasswordProps>, {}>>>, {}, {}>; |
import { SupabaseClient } from '@supabase/supabase-js'; | ||
import { I18nVariables, RedirectTo } from '@supabase/auth-ui-shared'; | ||
import { type Appearance } from '../types'; | ||
import { RedirectTo } from '@supabase/auth-ui-shared'; | ||
import { type Appearance, type AuthI18nVariables } from '../types'; | ||
export interface MagicLinkProps { | ||
@@ -9,3 +9,3 @@ appearance?: Appearance; | ||
showLinks?: boolean; | ||
i18n?: I18nVariables; | ||
i18n?: AuthI18nVariables; | ||
} | ||
@@ -12,0 +12,0 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MagicLinkProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MagicLinkProps>, {}>>>, {}, {}>; |
import { Provider, SupabaseClient } from '@supabase/supabase-js'; | ||
import { I18nVariables, ProviderScopes, SocialLayout } from '@supabase/auth-ui-shared'; | ||
import { Appearance } from '../types'; | ||
import { ProviderScopes, SocialLayout } from '@supabase/auth-ui-shared'; | ||
import { type Appearance, type AuthI18nVariables } from '../types'; | ||
declare type RedirectTo = undefined | string; | ||
@@ -16,3 +16,3 @@ export interface SocialAuthProps { | ||
view?: 'sign_in' | 'sign_up' | 'magic_link'; | ||
i18n?: I18nVariables; | ||
i18n?: AuthI18nVariables; | ||
appearance?: Appearance; | ||
@@ -19,0 +19,0 @@ } |
import { SupabaseClient } from '@supabase/supabase-js'; | ||
import { I18nVariables } from '@supabase/auth-ui-shared'; | ||
import { type Appearance } from '../types'; | ||
import { type Appearance, type AuthI18nVariables } from '../types'; | ||
export interface UpdatePasswordProps { | ||
appearance?: Appearance; | ||
supabaseClient: SupabaseClient; | ||
i18n?: I18nVariables; | ||
i18n?: AuthI18nVariables; | ||
} | ||
@@ -9,0 +8,0 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UpdatePasswordProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<UpdatePasswordProps>, {}>>>, {}, {}>; |
@@ -48,2 +48,3 @@ import { SupabaseClient } from '@supabase/supabase-js'; | ||
} | undefined; | ||
identity_id: string; | ||
provider: string; | ||
@@ -54,2 +55,3 @@ created_at?: string | undefined; | ||
}[] | undefined; | ||
is_anonymous?: boolean | undefined; | ||
factors?: { | ||
@@ -56,0 +58,0 @@ id: string; |
import { SupabaseClient } from '@supabase/supabase-js'; | ||
import { I18nVariables, OtpType } from '@supabase/auth-ui-shared'; | ||
import { type Appearance } from '../types'; | ||
import { OtpType } from '@supabase/auth-ui-shared'; | ||
import { type Appearance, type AuthI18nVariables } from '../types'; | ||
export interface VerifyOtpProps { | ||
@@ -9,3 +9,3 @@ appearance?: Appearance; | ||
showLinks?: boolean; | ||
i18n?: I18nVariables; | ||
i18n?: AuthI18nVariables; | ||
} | ||
@@ -12,0 +12,0 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VerifyOtpProps>, { |
import type { CSSProperties, InjectionKey, Ref } from 'vue'; | ||
import type { BaseAppearance, I18nVariables, OtpType, ProviderScopes, RedirectTo, SocialLayout, ViewType } from '@supabase/auth-ui-shared'; | ||
import type { Provider, Session, SupabaseClient, User } from '@supabase/supabase-js'; | ||
import type { Provider, Session, SignInAnonymouslyCredentials, SupabaseClient, User } from '@supabase/supabase-js'; | ||
export interface Appearance extends BaseAppearance { | ||
@@ -16,2 +16,10 @@ style?: { | ||
} | ||
declare type ViewAnonymousSignIn = 'anonymous_sign_in'; | ||
export declare type AuthViewType = ViewType | ViewAnonymousSignIn; | ||
export interface AuthI18nVariables extends I18nVariables { | ||
anonymous_sign_in?: { | ||
button_label?: string; | ||
loading_button_label?: string; | ||
}; | ||
} | ||
interface BaseAuth { | ||
@@ -25,3 +33,2 @@ supabaseClient: SupabaseClient; | ||
}; | ||
view?: ViewType; | ||
redirectTo?: RedirectTo; | ||
@@ -39,2 +46,7 @@ onlyThirdPartyProviders?: boolean; | ||
dark?: boolean; | ||
theme?: 'default' | string; | ||
} | ||
export interface AuthProps extends BaseAuth { | ||
appearance?: Appearance; | ||
view?: AuthViewType; | ||
/** | ||
@@ -44,13 +56,10 @@ * Override the labels and button text | ||
localization?: { | ||
variables?: I18nVariables; | ||
variables?: AuthI18nVariables; | ||
}; | ||
theme?: 'default' | string; | ||
anonymouslyCredentials?: SignInAnonymouslyCredentials; | ||
} | ||
export interface AuthProps extends BaseAuth { | ||
appearance?: Appearance; | ||
} | ||
export declare type AuthProvider = 'apple' | 'azure' | 'bitbucket' | 'discord' | 'facebook' | 'figma' | 'github' | 'gitlab' | 'google' | 'kakao' | 'keycloak' | 'linkedin' | 'linkedin_oidc' | 'notion' | 'slack' | 'spotify' | 'twitch' | 'twitter' | 'workos' | 'zoom'; | ||
export interface AuthViewInjection { | ||
authView: Ref<ViewType>; | ||
setAuthView: (view: ViewType) => void; | ||
authView: Ref<AuthViewType>; | ||
setAuthView: (view: AuthViewType) => void; | ||
} | ||
@@ -57,0 +66,0 @@ export interface UserContextProviderInjection { |
{ | ||
"name": "@nuxtbase/auth-ui-vue", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"type": "module", | ||
@@ -47,3 +47,3 @@ "author": "xiaoluoboding <xiaoluoboding@gmail.com>", | ||
"@supabase/auth-ui-shared": "^0.1.8", | ||
"@supabase/supabase-js": "^2.38.5" | ||
"@supabase/supabase-js": "^2.42.7" | ||
}, | ||
@@ -55,3 +55,3 @@ "devDependencies": { | ||
"@supabase/auth-ui-shared": "^0.1.8", | ||
"@supabase/supabase-js": "^2.38.5", | ||
"@supabase/supabase-js": "^2.42.7", | ||
"@types/lodash.clonedeep": "^4.5.7", | ||
@@ -58,0 +58,0 @@ "@types/node": "^18.7.14", |
@@ -6,3 +6,2 @@ # Auth UI Vue | ||
[![NPM Download][npmDtBadge]][npmDtUrl] | ||
[![Netlify Status](https://api.netlify.com/api/v1/badges/a855cf9a-2ec2-448a-a6a4-9661815bcb97/deploy-status)](https://app.netlify.com/sites/auth-ui-vue/deploys) | ||
@@ -41,2 +40,3 @@ [npmBadge]: https://img.shields.io/npm/v/@nuxtbase/auth-ui-vue.svg?maxAge=2592000 | ||
- [Supported Views](#supported-views) | ||
- [Anonymous Sign-ins](#anonymous-sign-ins) | ||
- [Customization](#customization) | ||
@@ -215,2 +215,3 @@ - [Predefined themes](#predefined-themes) | ||
- [Forgotten password](https://supabase.com/docs/guides/auth/auth-password-reset#sending-password-reset-email) | ||
- [Anonymous Sign-ins](https://supabase.com/docs/guides/auth/auth-anonymous) | ||
@@ -236,6 +237,19 @@ ```html | ||
</script> | ||
``` | ||
We are planning on adding more views in the future. Follow along on this repo. | ||
### Anonymous Sign-ins | ||
The Auth component is currently support [Anonymous user login](https://supabase.com/docs/guides/auth/auth-anonymous#sign-in-anonymously). | ||
For this you need to create an anonymous user | ||
```js | ||
const { data, error } = await supabase.auth.signInAnonymously() | ||
``` | ||
[Enable manual linking](https://supabase.com/dashboard/project/_/settings/auth) in supabase | ||
Currently works for magic link and social login. | ||
If you use password login, you need user to update password after he | ||
## Customization | ||
@@ -242,0 +256,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
3851671
55
4001
622
16
3