From 4b9b700f731a6cabb91524da91fa775636adf491 Mon Sep 17 00:00:00 2001 From: Ricky Padilla Date: Wed, 18 Sep 2024 11:06:39 -0600 Subject: [PATCH] Added README.md (#16) * docs(PSG-4350): added README.md * fix: fixed bottom logo --- README.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c7ee6a --- /dev/null +++ b/README.md @@ -0,0 +1,61 @@ +![Passage Swift](https://storage.googleapis.com/passage-docs/passage-github-banner.png) + +# Passage Swift + +![SPM Version](https://img.shields.io/github/v/release/passageidentity/passage-swift?style=flat&label=Swift%20Package) +![Cocoapods Version](https://img.shields.io/github/v/release/passageidentity/passage-swift?style=flat&label=CocoaPods) + +![Language](https://img.shields.io/badge/Swift-informational?style=flat&logo=swift&logoColor=white&color=FA7343) +![Platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fpassage-swift%2Fpassage-swift%2Fbadge%3Ftype%3Dplatforms) +![Company](https://img.shields.io/badge/1Password-informational?style=flat&logo=1password&logoColor=white&color=3B66BC) +![License](https://img.shields.io/github/license/passageidentity/passage-swift.svg?style=flat) + +
+ +## ⚙️ Installation +### Swift Package Manager +To install via Swift Package Manager, enter this url Xcode's Swift Package Manager's search bar: +``` +https://github.com/passageidentity/passage-swift +``` + +### CocoaPods +To install via Cocoapods, add this dependency to your Podfile: +``` ruby +pod 'PassageSwift' +``` + +
+ +## 👩🏽‍💻 Example Usage +Below is an example of how easy it is to use Passage Swift to register a new user with a passkey and get their auth token: + +``` swift +import Passage + +let passage = Passage(appId: "YOUR_PASSAGE_APP_ID") + +try await passage.passkey.register(identifier: "new_user@email.com") + +let authToken = passage.tokenStore.authToken +``` + +
+ +## 🚀 Get Started +### Visit our 📚 [Passage Swift Docs](https://docs.passage.id) to get started adding Passage to your Swift app. +
+ +--- +
+

+ + + + Passage Logo + +

+ +

Give customers the passwordless future they deserve. To learn more check out passage.1password.com

+ +

This project is licensed under the MIT license. See the LICENSE file for more info.

\ No newline at end of file