Skip to content

update-token message without data throws in delegated embed mode #4198

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

In delegated-auth embed mode, an opencloud-embed:update-token message without data throws an uncaught error. oidcCallback.vue reads event.data.data.access_token without a guard, while authService.handleDelegatedTokenUpdate already guards it.

Reproduction Steps

  1. Embed the app with embed=true&embed-delegate-authentication=true
  2. Answer opencloud-embed:request-token with { name: 'opencloud-embed:update-token' } (no data)

Expected Outcome

The message is ignored.

Actual Outcome

Cannot read properties of undefined (reading 'access_token')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions