V5 Sub Authentication Flow

I was hoping it wasn’t me, the auth flow I use, I didn’t write (I’m not a programmer/developer, just a sysadmin with some basic knowledge) - and I ported everything to v5

channel name was replaced with channel id
user name was replaced with user id

auth url was changed to id.twitch.tv

header is set to use v5

I’m working in php and trying to dump each step using print_r() but some of it is confusing me.

Looks like I’ll just have to educate myself a bit to get through this.