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

[BUG] Godot 4 doesn't have "JavaScript" feature tag anymore. #379

Closed
kyboon opened this issue Jan 27, 2024 · 4 comments
Closed

[BUG] Godot 4 doesn't have "JavaScript" feature tag anymore. #379

kyboon opened this issue Jan 27, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@kyboon
Copy link

kyboon commented Jan 27, 2024

Describe the bug
I was trying to get the Firebase OAuth working on Godot 4, the desktop build worked fine but the web build failed. Upon inspection I found out that in auth.gd, get_token_from_url() function, the line OS.has_feature('JavaScript') always return false.

To Reproduce
Any implementation of OAuth on web build should fail.

Expected behavior
get_token_from_url() should return the token.

Environment:
Godot 4.2.stable.official
Browser: Chrome, Edge

Additional context
According to the Godot documentation , the tag "JavaScript" has been removed.
I've tried to replace the faulty line with OS.has_feature('web') and it worked, get_token_from_url() is now returning the expected result, and the "Sign in with Google" worked perfectly for my web build. I'm current using this as a workaround.

@kyboon kyboon added the bug Something isn't working label Jan 27, 2024
@WolfgangSenff
Copy link
Collaborator

Well that's a good find! Do you want to open a PR with the fix, or no?

@kyboon
Copy link
Author

kyboon commented Jan 27, 2024 via email

@WolfgangSenff
Copy link
Collaborator

Main is 3.x, and the branch labeled 4.x is for 4.

WolfgangSenff added a commit that referenced this issue Jan 27, 2024
Fix #379: Replaced "JavaScript" feature tag.
@WolfgangSenff
Copy link
Collaborator

Fixed by #380 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants