I have created oauth client in frappe, not able to authorize the oauth client getting error frappe.integrations.oauth2.authorize:1 Failed to launch ‘localhost:5173:?code=oQd4JH9f55q2RXzZ6Vm14mCxm01heC’ because the scheme does not have a registered handler.
in frontend using react-oauth2-pkce
const authService = new AuthService({
clientId: ‘YOUR_CLIENT_ID’,
authorizeEndpoint: ‘https://your-frappe-site.com/api/method/frappe.integrations.oauth2.authorize’,
tokenEndpoint: ‘https://your-frappe-site.com/api/method/frappe.integrations.oauth2.get_token’,
redirectUri: ‘localhost:5173:’,
scopes: [‘all openid’],
location: window.location,
provider: ‘frappe-oauth’
});
Can anyone help me to successfully authorize and generate token