Skip to content

Is there any easy way to protect a api route with this plugin? #25

@Soneji

Description

@Soneji

Hi

I love this next plugin thing! It's so handy!

I was wondering if there exists any simple way to protect an API route with this plugin? I imagine it would be as simple as validating the cookie, but unsure how exactly to do so...

It could also be handy to do in a nextjs middleware too, now that those exist 😁

Thanks!
:)

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