Introduction
This article provides a comprehensive, step-by-step guide to implementing authentication and authorization in a NestJS back...
For further actions, you may consider blocking this person and/or reporting abuse
This post saved me. I have spent at least the last two evenings reading through all the docs trying to figure out how to use Clerk with a non-NextJS backend.
I cannot thank you enough. What is your patreon. :))
I'm glad the post helped, you are welcome.
And I don't have a patreon account yet.
Hey - just FYI. You can use the @clerk/express if you're running an express REST API - and then enable it in your AppModule in the middlewareConsumer. Much simpler
Do you have any samples or working implementation of this?
I would love to know what documentation you used to learn how to work on this. This was really helpful. I could only find docs for clerk + a frontend framework on the clerk website
I got this by combing through Clerk and NestJS docs and trying different methods.
Great documentation brother! Saved me tons of time. Did not know we can use passport with Clerk!
You can most likely do that but you'd have to try that out yourself.
Your clerk.strategy.ts on line 2 is:
import { Injectable, Injectable, UnauthorizedException } from '@nestjs/common';but should be:
import { Injectable, Inject, UnauthorizedException } from '@nestjs/common';Instead
too many sweats, i'm passing on this spaghetti boilerplating
It's just a guide and not meant to be a boilerplate.