seldebrings / next-cognito-ssr-auth

NextJS SSR AWS Cognito JWT Authentication
9 stars 2 forks source link

Fixed Unhandled exception error caused by custom attribute #3

Closed Rashmi-278 closed 3 years ago

Rashmi-278 commented 3 years ago

Default cognito user pool has no custom attribute

uncomment the below line when your userpool is configured with creating a new custom attribute https://stackoverflow.com/questions/53475478/react-cognito-user-pool-a-client-attempted-to-write-unauthorized-attribute https://stackoverflow.com/questions/44013901/amazon-cognito-a-client-attempted-to-write-unauthorized-attribute

seldebrings commented 3 years ago

Hi,

I believe the custom timestamp attribute is needed to compare with the cookies in browser. I will check your issues and update readme file later today

Peter

On Nov 9, 2020, at 9:15 AM, Rashmi V Abbigeri notifications@github.com wrote:

Default cognito user pool has no custom attribute

uncomment the below line when your userpool is configured with creating a new custom attribute https://stackoverflow.com/questions/53475478/react-cognito-user-pool-a-client-attempted-to-write-unauthorized-attribute https://stackoverflow.com/questions/53475478/react-cognito-user-pool-a-client-attempted-to-write-unauthorized-attribute https://stackoverflow.com/questions/44013901/amazon-cognito-a-client-attempted-to-write-unauthorized-attribute https://stackoverflow.com/questions/44013901/amazon-cognito-a-client-attempted-to-write-unauthorized-attribute You can view, comment on, or merge this pull request online at:

https://github.com/staccked/next-cognito-ssr-auth/pull/3 https://github.com/staccked/next-cognito-ssr-auth/pull/3 Commit Summary

Fixed Unhandled exception error caused by custom attribute File Changes

M pages/api/register.ts https://github.com/staccked/next-cognito-ssr-auth/pull/3/files#diff-194f50bb4cdbe6dd38ca73423c570d5c6a47a7e098a61917e35feab27b577c0a (7) Patch Links:

https://github.com/staccked/next-cognito-ssr-auth/pull/3.patch https://github.com/staccked/next-cognito-ssr-auth/pull/3.patch https://github.com/staccked/next-cognito-ssr-auth/pull/3.diff https://github.com/staccked/next-cognito-ssr-auth/pull/3.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/staccked/next-cognito-ssr-auth/pull/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADK7EYDYQMUZNMORRDMJDXDSO6JIBANCNFSM4TO6KDEQ.