How to declare a global JS function
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
Heyo!
I'm trying to implement Google authentication in my app.
Google provides an HTML component, that expects a callback function, which is a string (the function's name):
I'm really lost here because I couldn't find a way of including the callback in the code that gets sent to the browser...
Been googling this for some time already, which is why I've come here for help...
I'm aware of NextAuth.js, but don't quite want to use it right now.
I'm trying to implement Google authentication in my app.
Google provides an HTML component, that expects a callback function, which is a string (the function's name):
<div data-callback="googleAuthCallback" ... other fields omitted></div>
I'm really lost here because I couldn't find a way of including the callback in the code that gets sent to the browser...
Been googling this for some time already, which is why I've come here for help...
I'm aware of NextAuth.js, but don't quite want to use it right now.