microsoft / omnichannel-chat-sdk

Headless Chat SDK to build your own chat widget against Dynamics 365 Omnichannel Services.
MIT License
42 stars 41 forks source link

Adding redirect for oauth reconnection #260

Closed elopezanaya closed 1 year ago

elopezanaya commented 1 year ago

Description

For Auth chats with invalid reconnection id , is missing the redirection URL as part of the response

Solution

Obtain the redirection URL when checking for connection availability, this call returns :

if reconnectable is false, then there is no point in checking for oauth reconnectable chats, so we will break the flow at this point and return the redirection URL

Tests

No Auth

pop-out

Auth

pop-out

No redirect config

guess

auth

when no reconnection url in the browser
elopezanaya commented 1 year ago

image