UNPKG

torii

Version:

A set of clean abstractions for authentication in Ember.js

20 lines (17 loc) 506 B
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Torii OAuth Redirect</title> <script> var CURRENT_REQUEST_KEY = '__torii_request'; var pendingRequestKey = window.localStorage.getItem(CURRENT_REQUEST_KEY); if (pendingRequestKey) { window.localStorage.removeItem(CURRENT_REQUEST_KEY); var url = window.location.toString(); window.localStorage.setItem(pendingRequestKey, url); } window.close(); </script> </head> </html>