Replies: 1 comment 3 replies
-
I don't think we have createSessionCookie exposed at this point - this is part of the firebase-admin SDK though, so is this being done client side or server side within your app? If it is happening server side then you will most likely want your test to trigger that logic on you server instead of trying to mock that within Cypress. I'm not sure how it would be happening client side (though that is where signInWithPopup is from). Are you passing the id token to your backend? Generally for auth Maybe I'm misunderstanding? Are you able to provide an example repo where you are doing this logic in an app and a Cypress test you are trying to write to confirm it? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using a session cookie in my application in order to manage user sessions obtained using createSessionCookie. This method takes in an idToken(not uid) that I am creating using signInWithPopup.
I am trying to replicate the same flow in a test and I am unable to figure out a way to get the idToken. All of the methods are returning only uid, email or displayName. Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions