Skip to content

Commit

Permalink
Merge pull request #21 from miroapp/auth
Browse files Browse the repository at this point in the history
Fix SSO authentication.
  • Loading branch information
aromancev authored Feb 28, 2022
2 parents cdc0251 + 558007c commit 380549b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RealtimeBoard.sketchplugin/Contents/Sketch/core/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ function UI() {
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];

if ([cookie domain] == 'miro.com') {
if ([cookie domain] == 'miro.com' || [cookie domain] == '.miro.com') {
[[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie];
}
}
Expand Down Expand Up @@ -507,7 +507,7 @@ function UI() {
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];

if ([cookie domain] == 'miro.com') {
if ([cookie domain] == 'miro.com' || [cookie domain] == '.miro.com') {
if ([cookie name] == 'token') {
api.setToken([cookie value]);
break;
Expand Down

0 comments on commit 380549b

Please sign in to comment.