You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In develop branch of Administration, once I log in with my idir I'm auto-redirected to the Profile page (as expected). However, in theory we have logic in place to pull my first and last name, and email address from my session.user info and prepopulate the form with it - this isn't happening.
Steps to reproduce the behaviour:
Be Andrea
Log in to local env using IDIR
get redirected to Profile page to create a new user for myself
all fields in the form are empty, where I would expect first_name, last_name, and email_address to be pre-populated from my auth session info
Network tab in browser shows a successful call to /session with my info (yes I am doxxing myself with this screenshot)
in bciers/apps/administration/app/components/profile/ProfilePage.tsx, getUserFormData is returning an error, so we enter the if ("error" in formData) logic, and console.log shows that the session fetched from await auth() is null, so session.user is undefined, which is why the formData in the UI is empty
ProfilePage does not allow the user to enter their own email address, since we intentionally force the user to use the email address associated with their IDIR/BCeID account. This means that I'm stuck on the profile page because I can't set my email address and it's a mandatory field.
Additional information:
My frontend server logs repeatedly shows
[auth][error] JWTSessionError: Read more at https://errors.authjs.dev#jwtsessionerror
[auth][cause]: Error: no matching decryption secret
I cannot, at this point, reproduce your error.
I have read the open issue, and
I have tried removing my NEXTAUTH_SECRET .env variable and tried duplicating the same .env variable without causing your unexpected issue...
As an attempt of the desperate...
have you tried deleting bciers/node_modules and running cd bciers && yarn
Do you have NEXTAUTH_SECRET and AUTH_SECRET defined
Describe the Bug:
In
develop
branch of Administration, once I log in with my idir I'm auto-redirected to the Profile page (as expected). However, in theory we have logic in place to pull my first and last name, and email address from mysession.user
info and prepopulate the form with it - this isn't happening.Steps to reproduce the behaviour:
bciers/apps/administration/app/components/profile/ProfilePage.tsx
,getUserFormData
is returning an error, so we enter theif ("error" in formData)
logic, and console.log shows that the session fetched fromawait auth()
is null, sosession.user
is undefined, which is why the formData in the UI is emptyAdditional information:
My frontend server logs repeatedly shows
which might be related to this open issue in nextauth
The text was updated successfully, but these errors were encountered: