FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers

Home Page:https://commerce.nearform.com/open-source/react-native-app-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use this package with Frappe?

yossularko opened this issue · comments

How to use this package with Frappe?
I see people using the "expo-auth-session" package with similar usage

const redirectUri = AuthSession.makeRedirectUri({
scheme: REDIRECT_URL_SCHEME,
path: "auth",
});

const [request, response, promptAsync] = AuthSession.useAuthRequest(
{
clientId: OAUTH_CLIENT_ID,
redirectUri,
responseType: "code",
scopes: ["all"],
usePKCE: false,
},
{
authorizationEndpoint:${BASE_URI}/api/method/frappe.integrations.oauth2.authorize,
tokenEndpoint:${BASE_URI}/api/method/frappe.integrations.oauth2.get_token,
}
);

then how do I write the code above using this package? please help, thank you.

We do not directly support that library, you may want to reach out to the authors of that package to see if they can assist you.