https://github.com/sawolabs/go-sdk
A fast Go authentication library. Passwordless login, secured using the PKI infrastructure
https://github.com/sawolabs/go-sdk
passwordless-authentication passwordless-login
Last synced: 5 months ago
JSON representation
A fast Go authentication library. Passwordless login, secured using the PKI infrastructure
- Host: GitHub
- URL: https://github.com/sawolabs/go-sdk
- Owner: sawolabs
- License: bsd-3-clause
- Created: 2022-05-11T04:46:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T10:43:51.000Z (about 4 years ago)
- Last Synced: 2024-06-20T08:10:53.155Z (almost 2 years ago)
- Topics: passwordless-authentication, passwordless-login
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## sawolabs/go-sdk
## Install
With Go toolchain:
```
go get -u github.com/sawolabs/go-sdk
```
## Examples
Let's start registering a sawo instance with apiKey and URL path:
```
func main() {
sawoconfig := new(gosdk.SawoConfig)
// Identifier type can be one of 'email' or 'phone_number_sms' or 'both_email_phone'
sawoconfig.Init("your-api-key", "email", "./assets/login.html", "/login")
r := gosdk.SawoRouter()
http.ListenAndServe(":8080", r)
}
```