danecando / with-firebase-user

A higher order function that decodes a Firebase Auth JWT and decorates the NextJS api request object with a Firebase user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrap `withFirebaseUser` in another function to bind options

danecando opened this issue · comments

This way options don't need to be added for every use in an API route

Something like this:

export const withFirebaseUser = createWithFirebaseUser({ ...options });