Subject from payload does not match subject from previous authentication

Hi, I have created a client and when I go through the process of connecting a new account through the client I go through login and consent everything works great! When I use the client to connect another account I get the following error in HYdra: Subject from payload does not match subject from previous authentication!.

this is how my client is setup:
{
“clientId”: “XXXXX-id”,
“clientName”: “Client Test”,
“clientSecret”: null,
“redirectUris”: [
https://XXXX.com/dashboard/auth/oauth/return/XXXXI/
],
“grantTypes”: [
“authorization_code”,
“refresh_token”
],
“responseTypes”: [
“code”,
“id_token”
],
“scope”: null,
“audience”: [],
“owner”: “”,
“policyUri”: “”,
“clientUri”: “https://XXXX.com”,
“logoUri”: “”,
“contacts”: [],
“subjectType”: null,
“createdAt”: “2019-06-13T22:15:05Z”,
“updatedAt”: “2019-06-13T22:15:05Z”
}

This issue was a 100% my fault! My System Auth uses magic link so the API handles the login and consent. I realized that I was defaulting remember to true in the Login Request object. I removed that and everything is working great. I am happy that I have this working with a passwordless system!

Awesome to hear that you got it working? Would you like to contribute the flow to the docs? Maybe even with a flow chart diagram using mermaid.js? I think that could be tremendously useful for many developers!

I’m not sure if I should resurrect this post or not, but I’m getting a similar issue when one user tries to login to the client application, logs out, and another user tries to log into the client application. I set the remember flag to false but I’m still getting this error.

EDIT: Well, maybe I just figured it out. I think I had to reset my cookies after making changes to my codebase.