Skip to content

makeDeviceCodeGrant() error with Passport::ignoreRoutes() #1817

Closed
@ejunker

Description

@ejunker

Passport Version

13.0.0

Laravel Version

12.13.0

PHP Version

8.4.7

Database Driver & Version

No response

Description

In my AppServiceProvider I have Passport::ignoreRoutes(); but this causes an error Route [passport.device] not defined. because in PassportServiceProvider makeDeviceCodeGrant() it uses route('passport.device')

You could probably check for Passport::$registersRoutes to know if you should register the grant type. Or else similar to how we have $passwordGrantEnabled we could have $deviceCodeGrantEnabled and let the user disable that specific grant.

Steps To Reproduce

Add Passport::ignoreRoutes(); to your AppServiceProvider.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions