Skip to content

Commit ed708d9

Browse files
authored
Merge pull request TwilioDevEd#401 from authy/authy-totp-snippets
TwilioAuth SDK 1.1.0 snippets
2 parents 382f0fd + 3ed8f9c commit ed708d9

File tree

11 files changed

+40
-2
lines changed

11 files changed

+40
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSString *deviceId = [sharedTwilioAuth getDeviceId];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let deviceId = sharedTwilioAuth.getDeviceId()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Get Device ID",
3+
"type": "mobile"
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[sharedTwilioAuth getTOTPWithDelegate:self];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sharedTwilioAuth.getTOTPWith(self)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Get TOTP",
3+
"type": "mobile"
4+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"title": "Import iOS framework",
2+
"title": "Import TwilioAuth framework",
33
"type": "mobile"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"title": "Setup Authy instance",
2+
"title": "Setup TwilioAuth instance",
33
"type": "mobile"
44
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Implement AUTTOTPDelegate",
3+
"type": "mobile"
4+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@interface TOTPViewController : UIViewController <AUTTOTPDelegate>
2+
// ...
3+
@end
4+
5+
@implementation TOTPViewController
6+
7+
// ...
8+
9+
- (void)didReceiveTOTP:(NSString *)totp withError:(NSError *)error {
10+
// ...
11+
}
12+
13+
@end

0 commit comments

Comments
 (0)