diff --git a/auth-server-password.md b/auth-server-password.md index 2599473d..693445b6 100755 --- a/auth-server-password.md +++ b/auth-server-password.md @@ -22,6 +22,8 @@ $passwordGrant = new \League\OAuth2\Server\Grant\PasswordGrant(); $passwordGrant->setVerifyCredentialsCallback(function ($username, $password) { // implement logic here to validate a username and password, return an ID if valid, otherwise return false }); + +$server->addGrantType($passwordGrant); ~~~ @@ -59,4 +61,4 @@ $router->post('/access_token', function (Request $request) use ($server) { } }); -~~~ \ No newline at end of file +~~~