rtCamp / login-with-google

Minimal plugin which allows WordPress user to login with google.
https://wordpress.org/plugins/login-with-google/
GNU General Public License v2.0
57 stars 17 forks source link

The value of 'callback' is not a function #136

Closed zandoga closed 1 year ago

zandoga commented 1 year ago

When I inspect pages on my website ( 24digi.com ) with Chrome I find the two errors shown below. No errors on the Google login page and the login works fine otherwise.

[GSILOGGER]: The value of 'callback' is not a function. Configuration ignored. .z @ client:44 _.Em @ client:250 Tn @ client:286 fo @ client:290 (anonymous) @ client:361 (anonymous) @ client:361 (anonymous) @ client:380

client?ver=1665122255:44 [GSILOGGER]: The value of 'callback' is not a function. Configuration ignored. .z @ client?ver=1665122255:44 _.Em @ client?ver=1665122255:250 Tn @ client?ver=1665122255:286 fo @ client?ver=1665122255:290 (anonymous) @ client?ver=1665122255:361 (anonymous) @ client?ver=1665122255:361 (anonymous) @ client?ver=1665122255:380

elifvish commented 1 year ago

@zandoga Issue flagged is not arising from the plugin. A script with id login-with-google-one-tap-js which contains the necessary callback function is being lazy loaded on 24digi.com Which results in console error. White listing this script from being lazy loaded should fix the issue. cc: @aviral-mittal