这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
531 B

import 'package:dio/dio.dart';
import 'package:oauth_dio/oauth_dio.dart';
class SmsGrant extends OAuthGrantType {
SmsGrant({
required this.phoneNumber,
required this.code,
this.scope = const [],
});
final String phoneNumber;
final String code;
final List<String> scope;
@override
RequestOptions handle(RequestOptions request) {
request.data = {
"grant_type": "phone_verify",
"scope": scope.join(' '),
"phoneNumber": phoneNumber,
"code": code,
};
return request;
}
}