[GH-ISSUE #1] OAuth provider signin fails after redirect #3

Closed
opened 2026-05-23 08:33:42 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @appy-one on GitHub (Feb 26, 2021).
Original GitHub issue: https://github.com/appy-one/acebase-client/issues/1

Originally assigned to: @appy-one on GitHub.

After signing in with an OAuth2 provider, the user is successfully redirected back to the site with ?result=[base64 encoded data]. BUT, the function handling the redirect result fails because it uses Buffer.from to do the base64 decoding, which is not supported in the browser.

Example:

const result = client.auth.getRedirectResult(); // Error

Solution: add browser polyfill for base64 decoding (safely with utf8 characters)

Originally created by @appy-one on GitHub (Feb 26, 2021). Original GitHub issue: https://github.com/appy-one/acebase-client/issues/1 Originally assigned to: @appy-one on GitHub. After signing in with an OAuth2 provider, the user is successfully redirected back to the site with ?result=[base64 encoded data]. BUT, the function handling the redirect result fails because it uses ```Buffer.from``` to do the base64 decoding, which is not supported in the browser. Example: ```js const result = client.auth.getRedirectResult(); // Error ``` Solution: add browser polyfill for base64 decoding (safely with utf8 characters)
gitea-mirror 2026-05-23 08:33:42 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@appy-one commented on GitHub (Feb 26, 2021):

Fix published with v1.1.0

<!-- gh-comment-id:786774979 --> @appy-one commented on GitHub (Feb 26, 2021): Fix published with v1.1.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-client#3
No description provided.