Skip to content

Commit 96e30ad

Browse files
fix(cognito): parse identities
1 parent 921b001 commit 96e30ad

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/javascript/src/lib/jane-service.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,16 @@ const verifyCredentials = async (data, token) => {
129129
const verifySSOUser = async (data, token) => {
130130
console.log("token: ", token)
131131
console.log("data: ", data)
132+
const parsedData = {
133+
...data,
134+
user_attributes: {
135+
...data.user_attributes,
136+
identities: JSON.parse(data.user_attributes.identities)
137+
}
138+
}
132139
const response = await apiService.post(
133140
`${COGNITO_API}/verify_sso_user`,
134-
data,
141+
parsedData,
135142
token
136143
)
137144

0 commit comments

Comments
 (0)