Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlewis committed Sep 19, 2019
1 parent 3f23ef3 commit d0f308a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ By default, this includes basic concrete types for Password & Generators. If you
* Implement `PasswordProtocol` with your own concrete type, such as `NSManagedObject`
* Use [Valet-THOTP](https://github.com/ericlewis/Valet-THOTP), which adds extensions + a new concrete type for easily persisting using [Valet](https://github.com/square/Valet)

* TODO
### Basic
The simplest usage is to parse a URL. `THOTP` is compatible with [Google Authenticator's URI Scheme](https://github.com/google/google-authenticator/wiki/Key-Uri-Format).
```swift
let password = try? Password(url: URL(string: "otpauth://totp/test?secret=GEZDGNBV")!)
print(password) // 123321
```

## License

Expand Down

0 comments on commit d0f308a

Please sign in to comment.