I’ve checked and finally doesn’t think it will work for custom token because this is not returning the token_type parameter and doesn’t response with access_token but just “access” instead. Sorry.

Next step to debug this is to create a requestbin.com (or other similar tool) and send the request there and inspect