Skip to main content

ReactNativeContainerDelegate

@authgear/react-native / ReactNativeContainerDelegate

Interface: ReactNativeContainerDelegate

Table of contents

Properties

Methods

Properties

onSessionStateChange

onSessionStateChange: (container: ReactNativeContainer, reason: SessionStateChangeReason) => void

Type declaration

▸ (container, reason): void

This callback will be called when the session state is changed.

For example, when the user logs out, the new state is "NO_SESSION" and the reason is "LOGOUT".

Parameters
NameType
containerReactNativeContainer
reasonSessionStateChangeReason
Returns

void

Defined in

packages/authgear-react-native/index.d.ts:824

Methods

sendWechatAuthRequest

sendWechatAuthRequest(state): void

This callback will be called when user click login with WeChat in react-native.

Developer should implement this function to use WeChat SDK to obtain WeChat authentication code. After obtaining the code, developer should call wechatAuthCallback with code and state to complete the WeChat login.

Parameters

NameType
statestring

Returns

void

Defined in

packages/authgear-react-native/index.d.ts:836