We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dbAuth middleware will need to "handoff" requests to the DbAuthHandler whenever it intercepts a request for login, signup, etc.
The dbAuthHandler has to have the capability of parsing a Fetch API request, and responding so that the middleware can then use the output.
In essence the highlighted section of the middleware:
export const createDbAuthMiddleware = (/*...*/) => { return async (req: MiddlewareRequest) => { const res = MiddlewareResponse.next() if (req.method === 'POST') { // 👇 Middleware handoff to dbAuthHandler 👇 const output = await dbAuthHandler(req)
The text was updated successfully, but these errors were encountered:
dthyresson
dac09
Successfully merging a pull request may close this issue.
The dbAuth middleware will need to "handoff" requests to the DbAuthHandler whenever it intercepts a request for login, signup, etc.
The dbAuthHandler has to have the capability of parsing a Fetch API request, and responding so that the middleware can then use the output.
In essence the highlighted section of the middleware:
The text was updated successfully, but these errors were encountered: