• I have a general configuration question.
    How do I set up simple-jwt-login to log user in with Google’s JWT?
    The algorithm is RS256. I have generated a key pair myself and put them in the ‘General‘ tab.
    In the ‘Login‘ tab, I select ‘Login in by email’ with parameter key being ’email’.
    However, when I GET the endpoint, I received

    {
        "success": false,
        "data": {
            "message": "Signature verification failed",
            "errorCode": 11
        }
    }

    What have I done wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicu Micle

    (@nicu_m)

    Hello @laiconsulting,

    Please make sure you replace the \n with new lines from your keys.

    I think this might be the issue.

    If you need help with this, please fill up this form:
    https://eu.123formbuilder.com/form-37073/

    Best regards,
    Nicu.

    Thread Starter laiconsulting

    (@laiconsulting)

    @nicu_m

    thanks for the suggestion.
    I don’t have any \n in keys.
    Could you perhaps point me to some tutorial how headless social login should work?
    For example, do I need any custom code to communicate with Google API to authenticate Google logins? Or the JWT from Google will suffice to log in to WP.

    I believe what may be wrong is rather my configuration and my assumption that the JWT from Google alone can log into WP with Simple-JWT-login.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘authenticate with JWT from Google’ is closed to new replies.