FormidableLabs / FormidableLabs/react-native-app-auth

registration_failed on register method

Open
#757 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

## Issue

hello guys, im facing a issue when i try to use the register method, i got `registration_failed`
config:
```js
const registerConfig: RegistrationConfiguration = {
issuer: ACCOUNT_URL,
redirectUrls: [REDIRECT_URL],
serviceConfiguration: {
authorizationEndpoint: `${ACCOUNT_URL}/oauth/authorize`,
registrationEndpoint: `${ACCOUNT_URL}/oauth/authorize?action=register`,
tokenEndpoint: `${ACCOUNT_URL}/oauth/token`,
},
};

method:
```js
register: async () =>
register(registerConfig)
.then(async state => {
await StorageService.setSecureValue(
homeKeys.accessToken,
state.registrationAccessToken!,
);
})
.catch(err => {
console.log(err.code);
}),
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.