betomoedano / betomoedano/react-navigation-example
Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I've got this error :
Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared
If you have an idea thx in advance
```JS
export default function FacebookSignInButton() {
const [request, response, promptAsync] = Facebook.useAuthRequest({
responseType: ResponseType.Token,
clientId: 'XXXXX',
redirectUri: 'https://XXXXXX.firebaseapp.com/__/auth/handler',
});
useEffect(() => {
if (response?.type === 'success') {
const { access_token } = response.params;
const credential = FacebookAuthProvider.credential(access_token);
signInWithCredential(auth, credential);
}
}, [response]);
return (
promptAsync()}
/>
);
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.