mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-04 19:30:24 -05:00
[client] Fix token login params
This commit is contained in:
@@ -29,7 +29,7 @@ class TokenLoginRoute extends PhylumRoute {
|
||||
TokenLoginRoute({required this.instanceUrl, required this.loginToken});
|
||||
|
||||
@override
|
||||
Uri get uri => Uri(path: '/login/oauth');
|
||||
Uri get uri => Uri(path: '/login/token');
|
||||
|
||||
@override
|
||||
Widget buildPage(BuildContext context) {
|
||||
|
||||
@@ -68,7 +68,7 @@ class _TokenLoginPageState extends State<TokenLoginPage> {
|
||||
final builder = UriBuilder.fromUri(instanceUrl);
|
||||
builder.path = '${builder.path}/api/v1/auth/token/login';
|
||||
final request = MultipartRequest('post', builder.build());
|
||||
request.fields['session_id'] = widget.loginToken;
|
||||
request.fields['login_token'] = widget.loginToken;
|
||||
|
||||
try {
|
||||
final response = await Client().send(request);
|
||||
|
||||
Reference in New Issue
Block a user