OAUTH using SSO w Velo for Google Sign In

I am attempting to follow this article: Using OAuth SSO with Velo | Help Center | Wix.com

I have added my backend code files as instructed and an image for the “google sign in button” and here the code for my lightbox/landing page is erroring on two things:

within the googleSignin function: these lines:

getAuthUrl ()
. then (( authorizationUrl ) => {
const authorizationUrl = result . authUrl
const state = result . state

Any thoughts?