Back to Browse

Twitch API Login with PHP

11.4K views
May 28, 2020
25:27

In this video we learn how to log a user in through the Twitch API using PHP. We create a login link to Twitch, send them there and present them with the Twitch app dialog box, they authorize our app, and get redirected back to our website. Upon redirect, we get a code what we exchange for an access token from Twitch which then allows us to get the users information. If the user exists in our database, we log them in. Otherwise, we sign them up and then log them in. —— Code on GItHub ⇛ https://github.com/jstolpe/easycodeis —— Live Site ⇛ https://justinstolpe.com/easycodeis —— Discord ⇝ https://discord.gg/aMwnDMKzGd Printify ⇝ https://bubbles-merch.printify.me TikTok ⇝ https://www.tiktok.com/@justinstolpe GitHub ⇝ https://github.com/jstolpe/ Instagram ⇝ https://www.instagram.com/justinstolpe/ Twitter ⇝ https://twitter.com/Justin_Stolpe LinkedIn ⇝ https://www.linkedin.com/in/justin-stolpe-3bb05426/ Reddit ⇝ https://www.reddit.com/user/jstolpe/ Twitch ⇝ https://www.twitch.tv/jstolpe Facebook ⇝ https://www.facebook.com/stolpejustin/ Website ⇝ https://justinstolpe.com SoundCloud ⇝ https://soundcloud.com/justin-stolpe —— #programming #developer #coding

Download

1 formats

Video Formats

360pmp446.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Twitch API Login with PHP | NatokHD