mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 03:17:00 +08:00
refactor: remove unused import and logging from JWT generation
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:developer';
|
|
||||||
import 'package:better_networking/models/auth/auth_jwt_model.dart';
|
import 'package:better_networking/models/auth/auth_jwt_model.dart';
|
||||||
import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart';
|
import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart';
|
||||||
|
|
||||||
@@ -46,7 +45,6 @@ String generateJWT(AuthJwtModel jwtAuth) {
|
|||||||
|
|
||||||
return token;
|
return token;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log(e.toString());
|
|
||||||
throw Exception('Failed to generate JSON Wweb Token: $e');
|
throw Exception('Failed to generate JSON Wweb Token: $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user