diff --git a/api/src/functions/identity-signup.js b/api/src/functions/identity-signup.js index 326699b..dd24b48 100644 --- a/api/src/functions/identity-signup.js +++ b/api/src/functions/identity-signup.js @@ -18,7 +18,7 @@ export const handler = async (req, _context) => { email: 'k.hutten@protonmail.ch', confirmation_sent_at: '2020-10-19T18:09:01Z', app_metadata: { provider: 'email' }, - user_metadata: { full_name: 'sick_dog' }, + user_metadata: { full_name: 'sick_dog', userName: 'hi bob' }, created_at: '2020-10-19T18:09:01Z', updated_at: '2020-10-19T18:09:01Z' } diff --git a/api/src/lib/auth.js b/api/src/lib/auth.js index 9fbd050..cc3b24a 100644 --- a/api/src/lib/auth.js +++ b/api/src/lib/auth.js @@ -70,7 +70,7 @@ import { AuthenticationError, ForbiddenError, parseJWT } from '@redwoodjs/api' * return await db.user.findOne({ where: { decoded.email } }) * } * - * @example - User info is conatined in the decoded token and roles extracted + * @example - User info is contained in the decoded token and roles extracted * * export const getCurrentUser = async (decoded, { _token, _type }) => { * return { ...decoded, roles: parseJWT({ decoded }).roles } diff --git a/redwood.toml b/redwood.toml index bb86088..40dc34e 100644 --- a/redwood.toml +++ b/redwood.toml @@ -9,6 +9,7 @@ port = 8910 apiProxyPath = "/.netlify/functions" includeEnvironmentVariables = ['GOOGLE_ANALYTICS_ID'] + experimentalFastRefresh = true [api] port = 8911 [browser] diff --git a/web/identity-test.json b/web/identity-test.json new file mode 100644 index 0000000..aa3b40c --- /dev/null +++ b/web/identity-test.json @@ -0,0 +1,15 @@ +{ + "event": "signup", + "instance_id": "403b7d63-17f9-48f1-a85f-3d6b41c7dad1", + "user": { + "id": "641222ee-3e61-4253-8c11-9f764779bcc5", + "aud": "", + "role": "", + "email": "k.hutten2@protonmail.ch", + "confirmation_sent_at": "2020-10-19T18:09:01Z", + "app_metadata": { "provider": "email" }, + "user_metadata": { "full_name": "sick_dog", "userName": "hi bob" }, + "created_at": "2020-10-19T18:09:01Z", + "updated_at": "2020-10-19T18:09:01Z" + } +} diff --git a/web/src/components/InputText/InputText.js b/web/src/components/InputText/InputText.js index aad823b..3198506 100644 --- a/web/src/components/InputText/InputText.js +++ b/web/src/components/InputText/InputText.js @@ -10,7 +10,7 @@ const InputText = ({ value, isEditable, onChange, className }) => { className )} > -
+
{ with more integrations coming soon.