formsort / oss

Formsort open source monorepo
20 stars 5 forks source link

Add onUnauthorized to IReactEmbedEventMap #80

Closed jklingelhofer closed 2 years ago

jklingelhofer commented 2 years ago

IReactEmbedEventMap is set up for all event listeners in web-embed-api except unauthorized. Mirroring the conventions of the onRedirect property, this PR just adds in onUnauthorized to the appropriate locations, and updates tests and README accordingly.


Testing locally off my fork, change caused logged message to appear as expected when a junk token was deliberately provided: image

And typical operation / no logged message when a genuine token is provided.