Bearer token is pasted as "[object Object]" when send an OpenAPI example request

Summary

Bearer token is pasted as [object Object] when send an OpenAPI example request

Steps to reproduce

Create a repository, create an OpenAPI file with at least one working endpoint with JWT token authorization. Open OpenAPI file in GitLab, click Authorize, paste valid token, click Authorize to save token, then close the popup, select any endpoint that would work with pasted token. Click Try it out, paste valid request parameters (if needed), click Execute.

What is the current bug behavior?

Bearer token has value [object Object]:

curl -X 'GET' \
  'https://<hosname>/<path>?<parameters>' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer [object Object]'

What is the expected correct behavior?

Bearer token is pasted correctly to request headers:

curl -X 'GET' \
  'https://<hosname>/<path>?<parameters>' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer abcdefg... bla-bla-bla... token...'

Relevant logs and/or screenshots

gitlab_issue

Other details

GitLab Enterprise Edition 14.9.3-ee