This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use magic_get_info instead of magic_auth_get_metadata * Major version bump
- Loading branch information
1 parent
c172428
commit ae5bf3b
Showing
6 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// UserResponse.swift | ||
// Magic | ||
// | ||
// Created by Romin Halltari on 11/22/2023. | ||
// Copyright © 2020 Magic Labs Inc. All rights reserved. | ||
// | ||
|
||
|
||
import Foundation | ||
|
||
public class RecoveryFactor: Codable { | ||
public var value: String | ||
public var type: RecoveryMethodType | ||
|
||
public init(value: String, type: RecoveryMethodType) { | ||
self.value = value | ||
self.type = type | ||
} | ||
|
||
public var description: String { | ||
return "value: \(value)\ntype: \(type.rawValue)\n" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// RecoveryMethodType.swift | ||
// Magic | ||
// | ||
// Created by Romin Halltari on 11/22/2023. | ||
// Copyright © 2020 Magic Labs Inc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum RecoveryMethodType: String, Codable { | ||
case phoneNumber = "PHONE_NUMBER" | ||
|
||
public var description: String { | ||
return rawValue.lowercased() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters