ContainerDelegate

@authgear/react-nativeContainerDelegate

Hierarchy

  • ContainerDelegate

Index

Properties

Methods

Properties

onSessionStateChange

onSessionStateChange: function

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".

Type declaration:

▸ ‹T›(container: BaseContainer‹T›, reason: SessionStateChangeReason): void

Type parameters:

T: BaseAPIClient

Parameters:

NameType
containerBaseContainer‹T›
reasonSessionStateChangeReason

Methods

sendWeChatAuthRequest

sendWeChatAuthRequest(state: string): 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