vapor-docs/2.0/docs/auth/provider.md

399 B

Auth Provider

After you've added the Auth Provider package to your project, setting the provider up in code is easy.

Add to Droplet

Register the AuthProvider.Provider with your Droplet.

import Vapor
import AuthProvider

let drop = try Droplet()

try drop.addProvider(AuthProvider.Provider.self)

...

Done

You are now ready to start using the Auth package.