Skip to content

About

Passwordless Authentication with Vapor

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Passwordless Authentication Provider for Vapor

Adds Passwordless Authentication support to the Vapor web framework.

Usage

import Vapor
import Passwordless

let drop = Droplet()
try drop.addProvider(Passwordless.Provider.self)

Config

To build, create a passwordless.json file in the Config/secrets folder. You may need to create the secrets folder if it does not exist. The secrets folder is under the gitignore and shouldn't be committed.

Here's an example Config/secrets/passwordless.json

{
    "subject": "email",
    "same-device": true,
    "token-medium": "body",
    "signer": "hmac256",
    "key": "passwordpasswordpasswordpassword",
    "token-expiration": 604800,
    "temp-token-expiration": 900,
    "token-key": "access_token"
}

About

Passwordless Authentication with Vapor

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages