Force authentication on app launch
import authgear, { TransientTokenStorage } from "@authgear/react-native";
authgear.configure({
clientID: CLIENT_ID,
endpoint: ENDPOINT,
tokenStorage: new TransientTokenStorage(),
});final authgear = Authgear(
clientID: CLIENT_ID,
endpoint: ENDPOINT,
tokenStorage: TransientTokenStorage(),
);var authgearOptions = new AuthgearOptions
{
ClientId = CLIENT_ID,
AuthgearEndpoint = ENDPOINT,
TokenStorage: new TransientTokenStorage(),
};
#if __ANDROID__
var authgear = new AuthgearSdk(GetActivity().ApplicationContext, authgearOptions);
#else
#if __IOS__
var authgear = new AuthgearSdk(UIKit.UIApplication.SharedApplication, authgearOptions);
#endif
#endifPreviousUse SDK to call your application serverNextUse WebKitWebViewUIImplementation and UIImplementation
Last updated
Was this helpful?