Skip to content

Commit ee8af25

Browse files
jholzerJohnnyCrazy
authored andcommitted
Redirect window says "can be closed now". So why not let javascript do the job? ;-) (#334)
1 parent c6de994 commit ee8af25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SpotifyAPI.Web.Auth/ImplicitGrantAuth.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public Task<bool> GetAuth()
5555
}
5656

5757
Task.Factory.StartNew(() => auth.TriggerAuth(token));
58-
return this.StringResponseAsync("OK - This window can be closed now");
58+
return this.StringResponseAsync("<html><script type=\"text/javascript\">window.close();</script>OK - This window can be closed now</html>");
5959
}
6060

6161
public ImplicitGrantAuthController(IHttpContext context) : base(context)

0 commit comments

Comments
 (0)