Skip to content

Commit

Permalink
fix: remove type from identity object (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgierke committed Mar 9, 2024
1 parent 8ce2697 commit 8badb58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/nuxt/plugin/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export default defineNuxtPlugin({
if (typeof identity !== 'string') {
identityPayload = defu(identity, identityPayload)
identityType = identity.type

// Remove type from object to avoid invalid markup
delete identity.type;
}
else {
identityType = identity
Expand Down

0 comments on commit 8badb58

Please sign in to comment.