Skip to content

Commit

Permalink
Update README and version
Browse files Browse the repository at this point in the history
  • Loading branch information
lm2343635 committed Mar 28, 2020
1 parent c5fb21f commit 68b1c31
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# OS X
.DS_Store

# idea
.idea/

# Xcode
build/
*.pbxuser
Expand Down
3 changes: 3 additions & 0 deletions Example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# idea
.idea/

# Xcode
xcuserdata/
*.moved-aside
Expand Down
2 changes: 1 addition & 1 deletion PlutoSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'PlutoSDK'
s.version = '0.1.3'
s.version = '0.2'
s.summary = 'Swift SDK for Pluto login microservice.'

# This description is used to generate tags and improve search results.
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,37 @@ it, simply add the following line to your Podfile:
pod 'PlutoSDK'
```

## Document

To auth with Pluto, set up it at first in your `AppDelegate` class.

```swift
Pluto.shared.setup(server: "[server url]", appId: "[app id]")
```

Implement signing in and signing up with the following methods

- `Pluto.shared.registerByEmaili()`
- `Pluto.shared.resendValidationEmail()`
- `Pluto.shared.loginWithEmail()`
- `Pluto.shared.loginWithGoogle()`
- `Pluto.shared.loginWithApple()`
- `Pluto.shared.resetPassword()`
- `Pluto.shared.logout()`

After signing in, get token or the header with token with the following methods

- `Pluto.shared.getToken()`
- `Pluto.shared.getHeaders()`

Get user information with

- `Pluto.shared.myInfo()`

Get scopes from jwt token with

- `Pluto.shared.getScopes()`

## Author

lm2343635, [email protected]
Expand Down

0 comments on commit 68b1c31

Please sign in to comment.