Conversation
rowan-m
left a comment
There was a problem hiding this comment.
Trying to sign in using a federated account on my local dev gives an "ID token verification failed." error in the console and an "Undefined" toast in the UI. It works on main.
| /** | ||
| * Initializes the IdP by fetching configuration options from the server. | ||
| * Resolves the config URLs and client IDs for each IdP. | ||
| * @returns The nonce to be used for authentication. |
There was a problem hiding this comment.
New hint has been added for a return value, but the function does not return it.
| this.idps.push(idp); | ||
| } | ||
| return options.nonce; | ||
| return; |
There was a problem hiding this comment.
Should there be a return value here? If not, just remove the return.
Could you double check that you are signing in using https://idp.locahost ? If it's with https://identity-provider-sesame.appspot.com, it won't work. |
Ah, yeah - it's using the remote IdP. How do I change the config to use the localhost one? |
|
Made sure I'm running against the latest commits, but it still runs against the remote IdP when I use |
|
I found the root cause but struggling to fix this. Let me nudge you when it starts working. |
…ate into FedCM params object. Add comments to identity.ts
|
@rowan-m there were two issues:
It should work fine by now. |
Address the changes in this update:
https://developer.chrome.com/blog/fedcm-chrome-143-updates#relocate_the_nonce_parameter