mikebronner / nova-passport-manager

Manage Passport clients and tokens from within Nova.
26 stars 18 forks source link

Detect Passport routes and show applicable forms #10

Open grantholle opened 4 years ago

grantholle commented 4 years ago

It would be cool if it could detect that I don't have the personal access routes enabled and not show the "Access Tokens" section.

Instead of calling Passport::routes() to enable all routes, I'm only enabling some.

Passport::routes(function (RouteRegistrar $router) {
    $router->forAuthorization();
    $router->forClients();
});

Great package.

mikebronner commented 4 years ago

@grantholle Thanks for the suggestion. I'll look into it.