Great guide. One thing to note is that token['permissions'] is now token['scope']
token['permissions']
token['scope']