Interface ICreateUseUserSessionOptions<TSessionProp>

Options for createUseUserSession() function.

interface ICreateUseUserSessionOptions<TSessionProp> {
    adminGroup?: Nilable<string>;
    adminPermission?: Nilable<string>;
    adminRole?: Nilable<string>;
    blockedGroup?: Nilable<string>;
    blockedPermission?: Nilable<string>;
    blockedRole?: Nilable<string>;
    context: Context<Nullable<TSessionProp>>;
    getUserAvatarUrl?: Nilable<GetUserAvatarUrl<IUserSessionProp>>;
}

Type Parameters

Properties

adminGroup?: Nilable<string>

Custom name of "super-admin" group.

Default

"admin"
adminPermission?: Nilable<string>

Custom name of "super-admin" permission.

Default

"admin"
adminRole?: Nilable<string>

Custom name of "super-admin" role.

Default

"admin"
blockedGroup?: Nilable<string>

Custom name of "totally blocked" group.

Default

"blocked"
blockedPermission?: Nilable<string>

Custom name of "totally blocked" permission.

Default

"blocked"
blockedRole?: Nilable<string>

Custom name of "totally blocked" role.

Default

"blocked"
context: Context<Nullable<TSessionProp>>

The context, which stores the session prop.

getUserAvatarUrl?: Nilable<GetUserAvatarUrl<IUserSessionProp>>

Returns a user avatar by session.

Generated using TypeDoc