{"modulePath":"github.com/cyril-fl/callback","version":"v0.10.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package createoauthcode\n\nPackage createoauthcode is the consent of the OAuth page: the password checked, an authorization code for the client.\n\n## Constants\n\n```go\nconst Lifetime = time.Minute\n```\nLifetime is how long a code waits for its exchange: the client exchanges it at once.\n\n## Functions\n\n```go\nfunc Process(ctx context.Context, db bun.IDB, input Input) *run\n```\nProcess checks the password and gives an authorization code for the client: the consent, without a session (createsession.ErrBadCredentials on a wrong password).\n\n## Types\n\n```go\ntype Input struct {\n\tName          string // required when Multi, see createsession.CheckPassword\n\tPassword      string\n\tMulti         bool\n\tClientID      string\n\tRedirectURI   string\n\tCodeChallenge string // S256 of the client's verifier\n\tReadOnly      bool\n}\n```\nInput is the consent of the OAuth page: the name and password, and what the client asked.\n\n","path":"github.com/cyril-fl/callback/core/services/process/createoauthcode","name":"createoauthcode","synopsis":"Package createoauthcode is the consent of the OAuth page: the password checked, an authorization code for the client.","isRedistributable":true}
