replace grant_type with token_type