Closed alwyntan closed 5 months ago
React native should be adding the window.atob to hermes soon (expected in 0.74), as seen in https://github.com/facebook/hermes/issues/1178, but that will be a while.
A known approach to fix this for now is to use the Base64
library, and call the Base64.atob
function instead
Can you try to import the polyfill for now?
import '@logto/rn/polyfill';
Describe the bug
After signing in, error thrown where
atob
doesn't existExpected behavior
No error to be thrown and the idToken to be properly decoded on the frontend.
How to reproduce?
Install
@logto/rn
and set it up correctly, then run thesignIn
with a valid user.Context
Screenshots