Skip to main content

Module: @openmobilehub/auth-core

React Native OMH Auth Core

Interfaces

Type Aliases

AndroidAuthConfig

Ƭ AndroidAuthConfig: Object

Type declaration

NameType
scopesstring[]
webClientId?string

Defined in

core/src/types.ts:6


AuthConfig

Ƭ AuthConfig: AuthConfiguration

Defined in

core/src/types.ts:3


AuthData

Ƭ AuthData: AuthorizeResult

Defined in

core/src/types.ts:4


AuthModuleConfig

Ƭ AuthModuleConfig: Object

Type declaration

NameType
IOSAppAuthConfigPartial<AuthConfig>
IOSGetUserIOSAuthFunction<OmhUserProfile>
IOSRefreshAccessToken?IOSAuthFunction<{ accessToken: string ; accessTokenExpirationDate: string }>
IOSRevokeAccessToken?IOSAuthFunction<void>
moduleNamestring

Defined in

core/src/types.ts:41


IOSAuthConfig

Ƭ IOSAuthConfig: Object

Type declaration

NameType
clientIdstring
clientSecret?string
redirectUrlstring
scopesstring[]

Defined in

core/src/types.ts:11


PlatformAuthConfig

Ƭ PlatformAuthConfig<A, I>: Object

Type parameters

NameType
Aextends AndroidAuthConfig = AndroidAuthConfig
Iextends IOSAuthConfig = IOSAuthConfig

Type declaration

NameType
android?Partial<A>
ios?Partial<I>

Defined in

core/src/types.ts:18

Functions

createAuthModule

createAuthModule<C>(moduleConfig): IAuthModule<C>

Type parameters

NameType
Cextends PlatformAuthConfig = PlatformAuthConfig

Parameters

NameType
moduleConfigAuthModuleConfig

Returns

IAuthModule<C>

Defined in

core/src/createAuthModule.ts:19