Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: base64url react native #33

Conversation

TimoGlastra
Copy link
Contributor

The buffer implementation from Node.JS is used by default when running in Node.JS even when the buffer package is installed.

Apparently the buffer package from NPM does not support base64url. I've adjusted the implementation based on the implementation in AFJ

@TimoGlastra TimoGlastra force-pushed the fix/base64-url-react-native branch from 447a072 to 967f26e Compare January 25, 2024 17:12
}
}

export function base64ToBase64URL(base64: string) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Biggest nit ever. The function does not have to be exported :). Should be the absolute slightest reduction in codegen :').

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed within the GitHub Mobile app 😎

Signed-off-by: Timo Glastra <[email protected]>
@TimoGlastra TimoGlastra force-pushed the fix/base64-url-react-native branch from ffd68da to 321abcf Compare January 28, 2024 08:09
@berendsliedrecht berendsliedrecht merged commit e71401c into berendsliedrecht:main Jan 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants