Added parameter token to the grantScopes callback