Skip to main content

@accounts/mikro-orm

Index

References

default

Renames and re-exports AccountsMikroOrm

Type Aliases

EmailCtor

EmailCtor<CustomUser, CustomEmailCtorArgs>: new (args: CustomEmailCtorArgs) => Email<CustomUser>

Type parameters

Type declaration

    • new (args: CustomEmailCtorArgs): Email<CustomUser>
    • Parameters

      • args: CustomEmailCtorArgs

      Returns Email<CustomUser>

ServiceCtor

ServiceCtor<CustomUser, CustomServiceCtorArgs>: new (args: CustomServiceCtorArgs) => Service<CustomUser>

Type parameters

Type declaration

    • new (args: CustomServiceCtorArgs): Service<CustomUser>
    • Parameters

      • args: CustomServiceCtorArgs

      Returns Service<CustomUser>

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, CustomSessionCtorArgs>: new (args: CustomSessionCtorArgs) => Session<CustomUser>

Type parameters

Type declaration

    • new (args: CustomSessionCtorArgs): Session<CustomUser>
    • Parameters

      • args: CustomSessionCtorArgs

      Returns Session<CustomUser>

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>> = ...