mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
v1.1.1
Breaking changes: - Updated ArcaneAuthInterface to make the `resendVerificationCode`, `confirmSignup`, and `resetPassword` methods more versatile Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
This commit is contained in:
@@ -53,8 +53,10 @@ class DebugAuthInterface implements ArcaneAuthInterface {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Result<String, String>> resendVerificationCode(String email) async {
|
||||
Arcane.log("Re-sending verification code to $email");
|
||||
Future<Result<String, String>> resendVerificationCode<T>({
|
||||
T? input,
|
||||
}) async {
|
||||
Arcane.log("Re-sending verification code to $input");
|
||||
return Result.ok("Code sent");
|
||||
}
|
||||
|
||||
@@ -76,8 +78,8 @@ class DebugAuthInterface implements ArcaneAuthInterface {
|
||||
|
||||
@override
|
||||
Future<Result<bool, String>> confirmSignup({
|
||||
required String username,
|
||||
required String confirmationCode,
|
||||
String? username,
|
||||
String? confirmationCode,
|
||||
}) async {
|
||||
Arcane.log(
|
||||
"Confirming registration for $username with code $confirmationCode",
|
||||
@@ -87,7 +89,7 @@ class DebugAuthInterface implements ArcaneAuthInterface {
|
||||
|
||||
@override
|
||||
Future<Result<bool, String>> resetPassword({
|
||||
required String email,
|
||||
String? email,
|
||||
String? newPassword,
|
||||
String? code,
|
||||
}) async {
|
||||
|
||||
Reference in New Issue
Block a user