roninoss / create-expo-stack

CLI tool to initialize a React Native application with Expo. Provides options to include Typescript, file-based routing via Expo Router, configuration based routing via pure React Navigation, styling via Nativewind, Restyle, Unistyles, StyleSheets, or Tamagui, and/or backend as a service such as Firebase and Supabase.
https://rn.new
MIT License
1.59k stars 85 forks source link

[cli] Add Clerk auth support #410

Open jan-vdm opened 2 months ago

jan-vdm commented 2 months ago

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?

Screenshots (if appropriate):

N/A

danstepanov commented 2 months ago

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

jan-vdm commented 2 months ago

@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

dannyhw commented 2 months ago

will take a look soon :)

danstepanov commented 2 months ago

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

dannyhw commented 2 months ago

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

dannyhw commented 2 months ago

@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?

jan-vdm commented 2 months ago

@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.

dannyhw commented 2 months ago

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

dannyhw commented 3 weeks ago

coming back to this again soon sorry for the delay

jan-vdm commented 2 weeks ago

@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.

dannyhw commented 2 weeks ago

Thanks, and congrats on your baby :)