create-expo-stack icon indicating copy to clipboard operation
create-expo-stack copied to clipboard

[cli] Add Clerk auth support

Open jan-vdm opened this issue 1 year ago • 14 comments

Description

Just adding support for Clerk authentication (https://clerk.com/) as I use it a lot and would be nice to have as part of my project scaffold.

Related Issue

N/A

Motivation and Context

The motivation behind this change is so that people have a baseline project start option for using Clerk as an authentication basis.

How Has This Been Tested?

  • Added a test for the mainstream popular line (clerk, expo-router, nativewind)
  • Manually tested each variation that included clerk (thank goodness for the do you want to delete existing project cli step)

Screenshots (if appropriate):

N/A

jan-vdm avatar Aug 30 '24 15:08 jan-vdm

@jan-vdm is this ready for review? if so, can you request Danny review it?

danstepanov avatar Sep 03 '24 04:09 danstepanov

@jan-vdm is this ready for review? if so, can you request Danny review it?

It is ready but I don't have the ability to add reviewers unfortunately

jan-vdm avatar Sep 03 '24 07:09 jan-vdm

will take a look soon :)

dannyhw avatar Sep 03 '24 12:09 dannyhw

@dannyhw bumping in case this slipped. I'll have time later this week to review if you're busy.

danstepanov avatar Sep 08 '24 01:09 danstepanov

Hey, sorry it's been a busy week haven't gotten around to it yet. I can take a look now.

dannyhw avatar Sep 08 '24 13:09 dannyhw

@jan-vdm thanks for taking the time to put this together first of all. And sorry I wasn't able to get to this sooner.

I have just tested this and it seems to be working, just one thing I want to ask

in clerks guide they suggest using expo-secure-store to configure the Token Cache, shouldn't we also add this to the setup here? Are there reasons to not add it?

dannyhw avatar Sep 08 '24 16:09 dannyhw

@jan-vdm thanks for taking the time to put this together first of all. And sorry I wasn't able to get to this sooner.

I have just tested this and it seems to be working, just one thing I want to ask

in clerks guide they suggest using expo-secure-store to configure the Token Cache, shouldn't we also add this to the setup here? Are there reasons to not add it?

I mean I'm more than happy to add that in, didn't know how opinionated we wanted to go as you could use something else as the token cache. But I guess they could remove the dependency themself if that's the case.

jan-vdm avatar Sep 09 '24 02:09 jan-vdm

Personally I think we should be pretty opinionated and expo secure store would be the right choice from what I can tell.

dannyhw avatar Sep 09 '24 15:09 dannyhw

coming back to this again soon sorry for the delay

dannyhw avatar Oct 30 '24 00:10 dannyhw

@dannyhw added the expo-secure-store to the template, haven't been able to test it though as I have a newborn hence why I've taken a while with this. Feel free to take it for a spin otherwise I'll test it when I next get time.

jan-vdm avatar Nov 07 '24 08:11 jan-vdm

Thanks, and congrats on your baby :)

dannyhw avatar Nov 07 '24 09:11 dannyhw

hey @jan-vdm just checking in if you'll have time to revisit any time soon?

danstepanov avatar Dec 07 '24 00:12 danstepanov

@dannyhw we should probably move to rebase and/or test ourselves. Will you have time this week to do so? If not, I can see if I will.

danstepanov avatar Mar 16 '25 07:03 danstepanov

@danstepanov unfortunately a lot going on at work for me currently so not sure I will have time. I didn't get around to the src folder stuff for the same reason, sorry about that.

dannyhw avatar Mar 16 '25 15:03 dannyhw