react-native-okhi
    Preparing search index...

    Type Alias OkHiLogin

    Complete login configuration for authenticating with OkHi.

    This is the primary configuration object passed to the login() function. It combines authentication credentials, user information, and optional settings.

    import * as OkHi from 'react-native-okhi';
    import type { OkHiLogin } from 'react-native-okhi';

    const credentials: OkHiLogin = {
    auth: {
    branchId: 'your_branch_id',
    clientKey: 'your_client_key',
    },
    user: {
    firstName: 'John',
    lastName: 'Doe',
    phone: '+254712345678',
    email: 'john.doe@example.com',
    },
    configuration: {
    withPermissionsRequest: true,
    },
    };

    await OkHi.login(credentials);
    type OkHiLogin = {
        auth: OkHiAuth;
        user: OkHiUser;
        configuration?: OkHiLoginConfiguration;
        appContext?: OkHiAppContext;
    }
    Index

    Properties

    auth: OkHiAuth

    Authentication credentials for OkHi.

    user: OkHiUser

    User information.

    configuration?: OkHiLoginConfiguration

    Optional login behavior configuration.

    appContext?: OkHiAppContext

    Optional application context for analytics.