Skip to content

Commit

Permalink
fix(cognito): parse identities
Browse files Browse the repository at this point in the history
  • Loading branch information
samueljamesbliss committed Oct 17, 2023
1 parent 921b001 commit 96e30ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/javascript/src/lib/jane-service.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,16 @@ const verifyCredentials = async (data, token) => {
const verifySSOUser = async (data, token) => {
console.log("token: ", token)
console.log("data: ", data)
const parsedData = {
...data,
user_attributes: {
...data.user_attributes,
identities: JSON.parse(data.user_attributes.identities)
}
}
const response = await apiService.post(
`${COGNITO_API}/verify_sso_user`,
data,
parsedData,
token
)

Expand Down

0 comments on commit 96e30ad

Please sign in to comment.