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.5k stars 84 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 1 month ago

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

dannyhw commented 1 month ago

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

dannyhw commented 1 month 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 1 month 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 1 month 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 4 days ago

coming back to this again soon sorry for the delay