Skip to content

Setting up the api guard not working #4

Answered by MalindiJohn
cindymary asked this question in Q&A
Discussion options

You must be logged in to vote

Change your api guard driver to jwt as it is in readme and you should be good to go.

Refer the code below:

'guards' => [

        // web guard
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        //api guard (jwt config)
        'api' => [
            'driver' => 'jwt',
            'provider' => 'users',
        ],

 ],

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cindymary
Comment options

Answer selected by cindymary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3 on June 28, 2024 08:48.