Back to Pocketbase

Interface collectionAuthOptions

static/jsvm/interfaces/core.collectionAuthOptions.html

latest4.2 KB
Original Source

Interface collectionAuthOptions

collectionAuthOptions defines the options for the "auth" type collection.

Hierarchy

  • collectionAuthOptions

Index

Properties

authAlertauthRule?authTokenconfirmEmailChangeTemplateemailChangeTokenfileTokenmanageRule?mfaoauth2otppasswordAuthpasswordResetTokenresetPasswordTemplateverificationTemplateverificationToken

Properties

authAlert

authAlert: AuthAlertConfig

AuthAlert defines options related to the auth alerts on new device login.

Optional authRule

authRule?: string

AuthRule could be used to specify additional record constraints applied after record authentication and right before returning the auth token response to the client.

For example, to allow only verified users you could set it to "verified = true".

Set it to empty string to allow any Auth collection record to authenticate.

Set it to nil to disallow authentication altogether for the collection (that includes password, OAuth2, etc.).

authToken

authToken: TokenConfig

Various token configurations

confirmEmailChangeTemplate

confirmEmailChangeTemplate: EmailTemplate

emailChangeToken

emailChangeToken: TokenConfig

fileToken

fileToken: TokenConfig

Optional manageRule

manageRule?: string

ManageRule gives admin-like permissions to allow fully managing the auth record(s), eg. changing the password without requiring to enter the old one, directly updating the verified state and email, etc.

This rule is executed in addition to the Create and Update API rules.

mfa

mfa: MFAConfig

MFA defines options related to the Multi-factor authentication (MFA).

oauth2

oauth2: OAuth2Config

OAuth2 specifies whether OAuth2 auth is enabled for the collection and which OAuth2 providers are allowed.

otp

otp: OTPConfig

OTP defines options related to the One-time password authentication (OTP).

passwordAuth

passwordAuth: PasswordAuthConfig

PasswordAuth defines options related to the collection password authentication.

passwordResetToken

passwordResetToken: TokenConfig

resetPasswordTemplate

resetPasswordTemplate: EmailTemplate

verificationTemplate

verificationTemplate: EmailTemplate

Default email templates

verificationToken

verificationToken: TokenConfig

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc