No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Werner 77fdd01b1c
update readme
2 months ago
README.md update readme 2 months ago
auth.htm close popup automatically 2 months ago
auth.js comment code 2 months ago
index.htm print token 2 months ago
index.js comment code 2 months ago

README.md

Implicit Popup Demo

A small demo using a popup instead of redirecting a user to authorize using Twitch’s implicit code flow.

index.htm is our main page and acts as our main application with index.js powering the page.

auth.htm is our popup page and its sole purpose is to inform index.htm when the auth flow has completed. This is powered by auth.js.

Live demo

https://r.3v.fi/implicit/

Notable issues

  • auth.js does not check for rejected authorizations and quietly errors out.
  • cannot use postMessage for other purposes without changing the format of the token message.