You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug auth.js:138 Uncaught TypeError: crypto.randomBytes is not a function Error occurs when getting authentication url for PCKE auth flow in a browser.
To Reproduce
- See codepen.
- Error appears in console
Expected Behavior
Calling getAuthenticationUrl on DropboxAuth instance for PKCE auth flow should return string authentication url.
Actual Behavior
Error occurs: auth.js:138 Uncaught TypeError: crypto.randomBytes is not a function
Screenshots
Versions
What version of the SDK are you using?
8.2.0
Are you using Javascript or Typescript?
Reproducible in both
What platform are you using? (if applicable)
Chrome Version 87.0.4280.88 (Official Build) (64-bit)
Firefox 83.0 (64-bit)
Edge Version 87.0.664.66 (Official build) (64-bit)
Additional context
The dropbox sdk appears to call window.crypto.randomBytes() which does not exist according to the MDN docs
The text was updated successfully, but these errors were encountered:
Describe the bug
auth.js:138 Uncaught TypeError: crypto.randomBytes is not a functionError occurs when getting authentication url for PCKE auth flow in a browser.To Reproduce
- See codepen.
- Error appears in console
Expected Behavior
Calling
getAuthenticationUrlonDropboxAuthinstance for PKCE auth flow should return string authentication url.Actual Behavior
Error occurs:
auth.js:138 Uncaught TypeError: crypto.randomBytes is not a functionScreenshots

Versions
8.2.0Additional context
The dropbox sdk appears to call
window.crypto.randomBytes()which does not exist according to the MDN docsThe text was updated successfully, but these errors were encountered: