This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
ResetConfig
siemensikkema edited this page Feb 25, 2020
·
1 revision
public struct ResetConfig<U: JWTAuthenticatable & PasswordResettable>: Service
Service
Creates a new PasswordReset configuration.
public init(name: String, baseURL: String, endpoints: ResetEndpoints = .default, signer: JWTSigner, responses: ResetResponses<U> = .default, controller: ResetControllerType = ResetController<U>())
- name: the name of your project.
- baseURL: the base url of your project. Used for generating reset password links.
- endpoints: determines the endpoints for the routes
- signer: signer and expiration period for password reset tokens.
- responses: contains the responses to be returned when requesting the endpoints.
- controller: contains logic for handling the reset password flow.
let baseURL: String
let controller: ResetControllerType
let endpoints: ResetEndpoints
let name: String
let responses: ResetResponses<U>
let signer: JWTSigner
func extractVerifiedPayload(from token: String) throws -> U.JWTPayload
func reset<T: PasswordResettable>(_ object: T, context: T.Context, on req: Request) throws -> Future<Void>
Generated at 2020-02-25T14:56:20+0000 using swift-doc.
Types
- GeneratePasswordResetTokenCommand
- GeneratePasswordResetTokenCommand.GeneratePasswordResetTokenCommand.Keys
- HasPasswordChangeCount.HasRequestResetPasswordContext.ResetPasswordContext
- HasPasswordChangeCount.HasRequestResetPasswordContext.ResetPasswordContext.PasswordResettable.PasswordResettable.PasswordResettable.PasswordResettable.ModelPayloadType.ModelPayload
- PasswordChangeCountClaim
- ResetConfig
- ResetConfigTag
- ResetConfigTag.ResetConfigTagData
- ResetControllerType.ResetController
- ResetEndpoints
- ResetError
- ResetProvider
- ResetResponses