Teleforge API Reference - v0.1.0
    Preparing search index...

    Interface BffIdentityConfig<TAppUser>

    interface BffIdentityConfig<TAppUser extends AppUser = AppUser> {
        adapter: IdentityAdapter<TAppUser>;
        autoCreate: boolean;
        cacheTTL?: number;
        onCreate?: (
            telegramUser: WebAppUser,
            context: BffRequestContext,
        ) => Partial<TAppUser> | Promise<Partial<TAppUser>>;
        resolve?: CustomIdentityResolver<TAppUser>;
        strategy: IdentityStrategy;
    }

    Type Parameters

    Hierarchy

    Index

    Properties

    autoCreate: boolean
    cacheTTL?: number
    onCreate?: (
        telegramUser: WebAppUser,
        context: BffRequestContext,
    ) => Partial<TAppUser> | Promise<Partial<TAppUser>>