Clerk Keeps Getting Better | Core 2.0 Setup Guide

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • НаукаНаука

Комментарии • 62

  • @bookercodes
    @bookercodes 4 месяца назад +2

    Great video Hamed 👏 I work at Clerk and this is spot-on!

    • @hamedbahram
      @hamedbahram  4 месяца назад +1

      Cool, thanks Alex! I appreciate that.

  • @VincentFulco
    @VincentFulco 5 месяцев назад +8

    it's so much easier and bug free than prior version

  • @gongool
    @gongool 5 месяцев назад +2

    Thanks Hamed appreciate that

  • @ryujinwatatsumi
    @ryujinwatatsumi 5 месяцев назад +1

    Great content as always Hamed ! I would love the clerk course to cover all the advanced topics especially organizations and all there aspects, as most of youtube tutos stick to basic sign-in and signup topics

    • @hamedbahram
      @hamedbahram  5 месяцев назад +1

      My pleasure! Absolutely, I'm exciting for the course as well.

    • @ryujinwatatsumi
      @ryujinwatatsumi 5 месяцев назад

      @@hamedbahram when will the course drop ?

    • @hamedbahram
      @hamedbahram  5 месяцев назад

      @@ryujinwatatsumi I'm working with the Clerk team on this actively and I'm hoping to get it done in the next 8-12 weeks. Join the waitlist to I can notify you with the progress.

    • @nelco63
      @nelco63 5 месяцев назад

      Well done Hamed 👏on adding Roles, Permissions and Multi Tenant to your Clerk course, most You Tubers would just skip this key part of most b2b solutions.

    • @hamedbahram
      @hamedbahram  5 месяцев назад +1

      @@nelco63 Thanks! Agreed!

  • @alexandrmeyer
    @alexandrmeyer 5 месяцев назад +1

    I really hope one day you make a video on Clerk (as one of the most popular auth platoforms, if not the most popular) vs. next-intl (probably the most popular internationalization platform for next.js) I could never fully resolve middleware clash betwen those two and could find the solution on the internet. Including translations from API (or other server solution... not just static .json files), including Clerk components, like buttons and profiles collapse when turning on translations. You have one of the most professional resources on the topic I have ever seen, so who would do it if not you 🙏

    • @hamedbahram
      @hamedbahram  5 месяцев назад +1

      Thanks for the kind words and the suggestion, I'll definitely have that in the Clerk course, but maybe even here on RUclips.

  • @patrykreba9676
    @patrykreba9676 4 месяца назад +1

    Great video! Unfourtanetley I am getting "Error: Clerk: The "/signup" route is not a catch-all route. It is recommended to convert this route to a catch-all route, eg: "/signup/[[...rest]]/page.tsx". Alternatively, update the SignUp component to use hash-based routing by setting the "routing" prop to "hash". "
    Even though I have exactly the same structure as it's suggested in the error. Have you ever encountered this?

    • @hamedbahram
      @hamedbahram  4 месяца назад

      Hmm 🤔 I haven't had this problem, make sure the path is `app/sign-up/[[...sign-up]]/page.tsx` and that you've added the env variables `NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up`. You can also clone my code and compare it to yours.

  • @w3mw
    @w3mw 4 месяца назад +1

    Is it possible to create a custom signup page with a role based section like
    consult or bussniess for example where consult is checked in by default?

  • @zainn7336
    @zainn7336 5 месяцев назад +1

    why clerk is not working with expo react native

    • @hamedbahram
      @hamedbahram  5 месяцев назад +1

      Not sure on that end, I'd reach out to Clerk's support.

  • @MohamedHaJJi1
    @MohamedHaJJi1 5 месяцев назад +1

    what about beforeAuth and afterAuth is there any alternative ?

    • @hamedbahram
      @hamedbahram  5 месяцев назад +1

      For `beforeAuth` you can do what you need inside the `clerkMiddleware` before you call the `auth().protect()` function. For the `afterAuth` you can return the next middleware function from your `clerkMiddleware`.

  • @alilishan
    @alilishan Месяц назад +1

    Hi, great video, but I am trying to deploy a nextjs + clerk app and the sign in redirect url remains as 127.0.0.1 ... i have searched high and low, gone thru documentation several times, messaged the dev team with no avail, maybe u or someone here can help :( .. thanks in advance

    • @hamedbahram
      @hamedbahram  Месяц назад

      Do you have custom sign-in and sign-up page? If you do, you need to set the following environment variables; also check the variables you're setting in your production deployment.
      ```
      NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
      NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
      ```

  • @thejeffkershner
    @thejeffkershner 3 месяца назад

    I just cloned your repo and noticed that you have the SignInButton as a mode='modal'. That means you are not using the sign-in page. Was that intentional? Do you recommend that?

    • @hamedbahram
      @hamedbahram  3 месяца назад

      It's just a matter of preference, whether you like to redirect the user to the sign-in page or just show them a modal without switching context.

    • @rasheedchappan3080
      @rasheedchappan3080 3 месяца назад

      @@hamedbahram ygkk kk

  • @kennyakins3536
    @kennyakins3536 5 месяцев назад

    Try calling the api route '/api/me' on a server page using fetch . The userId always returns null

    • @hamedbahram
      @hamedbahram  5 месяцев назад

      why would you call the api route from a server page? but for whatever reason you do, you have to pass the headers to the fetch function.

  • @AkanshaKumari-c1b
    @AkanshaKumari-c1b 2 месяца назад

    hello Hamed. Can you tell me that how can I track talk time of user in minutes using clerk metadata?

    • @hamedbahram
      @hamedbahram  Месяц назад

      Watch this video where I used Clerk metadata to track user credits → ruclips.net/video/vi9VhhMFpWI/видео.html

  • @Omarldev
    @Omarldev 4 месяца назад

    Thank you, appeciate that.

  • @27sosite73
    @27sosite73 5 месяцев назад

    wrapping your layout with making all routes in your project dynamic. Is there way to prevent this?

    • @27sosite73
      @27sosite73 5 месяцев назад

      found this in the discussions on the github. it cannot be solved. you have to move provider deeper or do something else. its buggy and brittle
      unfortunately, cant work for me =(

    • @27sosite73
      @27sosite73 5 месяцев назад

      actually..... it is somehow can be done not great DX though

    • @enzocodes
      @enzocodes 5 месяцев назад

      @@27sosite73 Doesnt that turn your hole app into client side?

    • @hamedbahram
      @hamedbahram  5 месяцев назад +1

      nope!

    • @hamedbahram
      @hamedbahram  5 месяцев назад +2

      Thanks for flagging this. I'm talking to the Clerk team, trying to figure out why this is.

  • @CodeMonsterOfficial
    @CodeMonsterOfficial 3 месяца назад

    how can we change font of the export default and return in the vs code
    anyone guide me how can we do this type in my vs code

    • @hamedbahram
      @hamedbahram  3 месяца назад +1

      Use a theme that supports italics.

    • @CodeMonsterOfficial
      @CodeMonsterOfficial 3 месяца назад

      @@hamedbahram Which theme are you using in your vs code for this?

    • @hamedbahram
      @hamedbahram  3 месяца назад +1

      @@CodeMonsterOfficial "Dark+ Italics"

  • @ts3798
    @ts3798 5 месяцев назад +1

    I can't for the life of me figure out why you'd want to pay for something as basic as auth.

    • @hamedbahram
      @hamedbahram  5 месяцев назад +1

      It's great that you find authentication easy!

    • @ts3798
      @ts3798 5 месяцев назад

      ​@@hamedbahram With a package like Auth.js it is definitely one of the easier features to implement in your app. Very easy to set up and gives you more than enough out of the box for most apps in my opinion. I guess the point for me is that if I'm going to spend money to make my development process easier, auth is not anywhere near the top of the list. Clerk are great marketers though.

    • @franklinmayoyo
      @franklinmayoyo 4 месяца назад +1

      It's helpful for users who need to ship fast and validate ideas.

    • @ts3798
      @ts3798 4 месяца назад

      @@franklinmayoyo I'm sure there are some valid use cases for it. Just be aware of the downsides. It is potentially expensive, there are concerns about the user data, and you are also outsourcing a very important part of your app to a third party. Who knows where Clerk will be in a year or two.

    • @ts3798
      @ts3798 4 месяца назад

      @@franklinmayoyo I would also take the word of RUclips "techfluencers" with a massive grain of salt. Clerk is not afraid to spend money on advertising.