Skip to content

How to handle 401 unauthorized error on jwt routeΒ #66

@enzolry

Description

@enzolry

If for some reason the credentials have expired or the domain making the request has not been whitelisted, we get a 401 Unauthorized error on the jwt authentication request. But I couldn't find any example on how to handle this kind of error properly, like in a global document event like "adobe_dc_view_sdk.error" for example or as an error callback in the configuration object.

The real problem is that when this Unauthorized error occurs, the embedded Adobe view conflicts with the text inputs, so that when I click on an input to write text, the input immediately loses focus, making it impossible to write anything!

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions