Skip to main content

@accounts/mikro-orm

Index

References

default

Renames and re-exports AccountsMikroOrm

Type Aliases

EmailCtor

EmailCtor<CustomUser>: new (args: EmailCtorArgs<CustomUser>) => Email<CustomUser>

Type parameters

  • CustomUser: IUser<any, any, any>

Type declaration

ServiceCtor

ServiceCtor<CustomUser>: new (args: ServiceCtorArgs<CustomUser>) => Service<CustomUser>

Type parameters

  • CustomUser: IUser<any, any, any>

Type declaration

ServiceCtorArgs

ServiceCtorArgs<CustomUser>: { name: string; password?: string; user?: CustomUser }

Type parameters

  • CustomUser: IUser<any, any, any>

Type declaration

  • name: string
  • optionalpassword?: string
  • optionaluser?: CustomUser

SessionCtor

SessionCtor<CustomUser>: new (args: SessionCtorArgs<CustomUser>) => Session<CustomUser>

Type parameters

  • CustomUser: IUser<any, any, any>

Type declaration

SessionCtorArgs

SessionCtorArgs<CustomUser>: { extra?: object; ip?: string | null; token: string; user: CustomUser; userAgent?: string | null; valid: boolean }

Type parameters

  • CustomUser: IUser<any, any, any>

Type declaration

  • optionalextra?: object
  • optionalip?: string | null
  • token: string
  • user: CustomUser
  • optionaluserAgent?: string | null
  • valid: boolean

UserCtor

UserCtor<CustomEmail, CustomSession, CustomService, CustomUserCtorArgs>: new (args: CustomUserCtorArgs) => IUser<CustomEmail, CustomSession, CustomService>

Type parameters

Type declaration

    • new (args: CustomUserCtorArgs): IUser<CustomEmail, CustomSession, CustomService>
    • Parameters

      • args: CustomUserCtorArgs

      Returns IUser<CustomEmail, CustomSession, CustomService>

Variables

constEmailToken

EmailToken: InjectionToken<Email<any>> = ...

constServiceToken

ServiceToken: InjectionToken<Service<any>> = ...

constSessionToken

SessionToken: InjectionToken<Session<any>> = ...

constUserToken

UserToken: InjectionToken<IUser<any, any, any>> = ...