Skip to main content

Module: @openmobilehub/auth-core

React Native OMH Auth Core

Interfaces

Type Aliases

AndroidAuthConfig

Ƭ AndroidAuthConfig: Object

Type declaration

NameType
scopesstring[]

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:40


IOSAuthConfig

Ƭ IOSAuthConfig: Object

Type declaration

NameType
clientIdstring
clientSecret?string
redirectUrlstring
scopesstring[]

Defined in

core/src/types.ts:10


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:17

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