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.
login()
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); Copy
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);
Authentication credentials for OkHi.
User information.
Optional
Optional login behavior configuration.
Optional application context for analytics.
Complete login configuration for authenticating with OkHi.
Remarks
This is the primary configuration object passed to the
login()function. It combines authentication credentials, user information, and optional settings.Example