Skip to main content

PromoteOptions

@authgear/react-native


@authgear/react-native / PromoteOptions

Interface: PromoteOptions

Auth UI anonymous user promotion options

Properties

colorScheme?

optional colorScheme: ColorScheme

Override the color scheme


redirectURI

redirectURI: string

The value should be a valid Redirect URI to which the response will be sent after authentication. You must also add a Redirect URI in Authgear Poral via the Redirect URI section of your Authgear Application.


uiLocales?

optional uiLocales: string[]

UI locale tags. You can use this parameter to set the display language for Auth UI.

First, enable the language you want to change to in Authgear Portal (Your project > UI Settings > click on the settings icon beside Language.)

For example, to change the language for Auth UI to Hong Kong, set the value for uiLocales to ["zh-HK"] after enabling "Chinese (Hong Kong)" in Authgear Portal.


wechatRedirectURI?

optional wechatRedirectURI: string

WeChat Redirect URI is needed when integrating WeChat login in react-native The wechatRedirectURI will be called when user click the login with WeChat button