1
00:00:00,400 --> 00:00:04,200
What up peeps, Welcome to Code 
with Coding Cats. 

2
00:00:04,920 --> 00:00:07,480
Today on the show we have James 
with us. 

3
00:00:07,520 --> 00:00:09,640
How's it going, James? 
It's going. 

4
00:00:09,680 --> 00:00:10,600
How's it going with you? 
It's. 

5
00:00:10,960 --> 00:00:13,840
Going well, I always forget. 
What part of the world are you 

6
00:00:13,840 --> 00:00:16,440
in? 
So I'm in Raleigh, NC. 

7
00:00:17,080 --> 00:00:22,600
So I think I'm in this Eastern 
Time zone, so that's nice. 

8
00:00:22,600 --> 00:00:24,360
It's a nice day up here in 
Michigan. 

9
00:00:24,360 --> 00:00:27,120
Finally 75, sunny. 
It's beautiful though. 

10
00:00:27,960 --> 00:00:29,760
Ours is down in the 80s 
somewhere. 

11
00:00:30,120 --> 00:00:33,040
We were in the 90s but we're in 
the 80s again now so we're 

12
00:00:33,040 --> 00:00:37,320
trending downwards very slowly. 
My wife is unhappy. 

13
00:00:37,400 --> 00:00:39,880
I'm happy about it because I'm 
hot all the time. 

14
00:00:40,720 --> 00:00:41,600
Same. 
Same. 

15
00:00:41,760 --> 00:00:45,480
Yeah, Yeah. 
My, my wife's full plan is to 

16
00:00:45,880 --> 00:00:49,000
have us work from Disney once my
son graduates. 

17
00:00:49,000 --> 00:00:51,560
And I'm like, I don't know if I 
can handle all this heat. 

18
00:00:51,600 --> 00:00:54,200
But OK, right. 
Yeah, yeah. 

19
00:00:54,200 --> 00:00:55,840
It it gets pretty rough 
sometimes. 

20
00:00:55,920 --> 00:00:59,160
It's been the hottest summer 
ever since we've lived here. 

21
00:00:59,360 --> 00:01:00,280
Oh really? 
Wow. 

22
00:01:00,440 --> 00:01:05,920
And it's like I think we've had 
an extra 20 something days of 

23
00:01:05,920 --> 00:01:08,520
over 90° so far. 
Oh my goodness. 

24
00:01:08,920 --> 00:01:11,120
So yeah, it's been real hot. 
It's been. 

25
00:01:11,200 --> 00:01:14,640
Really dry up here. 
It finally started raining of 

26
00:01:14,640 --> 00:01:16,600
course when I like took off on 
vacation. 

27
00:01:16,600 --> 00:01:19,040
So yeah, I've been traveling a 
little bit, a little bit. 

28
00:01:19,040 --> 00:01:21,200
So if people haven't seen me 
floating around. 

29
00:01:21,200 --> 00:01:26,960
We were at Ng comp for a week 
and then came back and decided 

30
00:01:27,120 --> 00:01:30,040
not decided we had it in the 
plans to go to Jamaica right 

31
00:01:30,040 --> 00:01:32,880
after that. 
And I'm telling James it was 

32
00:01:32,880 --> 00:01:35,560
hot. 
Like it was crazy hot. 

33
00:01:35,560 --> 00:01:38,400
And we've been to, we've been to
Jamaica a few times during the 

34
00:01:38,400 --> 00:01:41,800
same time period and holy 
smokes, it was way hotter and 

35
00:01:41,800 --> 00:01:43,800
more humid than it's been. 
So. 

36
00:01:44,240 --> 00:01:45,960
That's what we've been saying 
that all year. 

37
00:01:46,000 --> 00:01:48,440
Like we haven't gone anywhere 
this year, but we've been saying

38
00:01:48,560 --> 00:01:51,000
all summer like, oh, it's way 
too hot here. 

39
00:01:51,000 --> 00:01:53,200
Like it's got so much hotter 
than normal. 

40
00:01:53,640 --> 00:01:55,280
And I'm like, we must be 
imagining it. 

41
00:01:55,320 --> 00:01:57,520
We must be, you know, like when 
you've gone through the winter 

42
00:01:57,520 --> 00:01:59,640
and you're like, oh, it's so, 
you know, whatever. 

43
00:02:01,720 --> 00:02:04,760
But like, yeah, they confirmed 
on the on, on the weather that 

44
00:02:04,760 --> 00:02:08,400
like, yeah, it's like 20-20 more
days or something, then over 90.

45
00:02:09,120 --> 00:02:10,520
And it's like, yeah, it's rough.
It's. 

46
00:02:11,560 --> 00:02:13,680
Just bananas. 
Yeah, it's, it's weird. 

47
00:02:13,680 --> 00:02:18,000
I I keep reading about La Nina 
or La Nino and the Arctic vortex

48
00:02:18,000 --> 00:02:20,040
and I'm like, should be an 
interesting winner. 

49
00:02:20,040 --> 00:02:22,920
I guess we'll see. 
Yeah, yeah, we're we're hoping 

50
00:02:22,920 --> 00:02:25,960
for an last year we got 0 inches
of snow. 

51
00:02:26,240 --> 00:02:29,880
Wow, nice. 
So I'm hoping for another 0 inch

52
00:02:29,960 --> 00:02:33,360
year, but we'll see. 
I'm hoping for like 3 feet just 

53
00:02:33,560 --> 00:02:35,200
constant. 
There you go. 

54
00:02:35,240 --> 00:02:37,160
Never have to go. 
Never leave the house. 

55
00:02:37,520 --> 00:02:39,680
I don't leave. 
Anyway, so yeah, me either. 

56
00:02:39,840 --> 00:02:41,840
Yeah, yeah. 
I don't care either way. 

57
00:02:43,480 --> 00:02:46,280
All right. 
So to jump into it, we're 

58
00:02:46,280 --> 00:02:50,160
talking all about clerk today. 
And I just wanted to throw this 

59
00:02:50,280 --> 00:02:53,280
up here because we had somebody 
on. 

60
00:02:53,600 --> 00:02:57,440
Do you happen to know this guy? 
Yeah, I know this guy. 

61
00:02:57,920 --> 00:03:01,120
Yeah, this is Braden. 
He's the other Co founder of of 

62
00:03:01,120 --> 00:03:04,000
Clerk. 
He's a really nice guy. 

63
00:03:04,400 --> 00:03:07,720
He's the CTO. 
I spent a lot of time chat with 

64
00:03:07,720 --> 00:03:10,840
him and Colin. 
We're a pretty small team, but 

65
00:03:10,840 --> 00:03:14,840
yeah, he's a lot's changed I 
imagine since since Braden's 

66
00:03:14,840 --> 00:03:16,520
been on. 
So yeah, I think, I think 

67
00:03:16,520 --> 00:03:19,880
you've, you've had quite a few 
updates since then. 

68
00:03:19,880 --> 00:03:22,680
So I'm just gonna pop open the 
page for now. 

69
00:03:23,200 --> 00:03:27,640
And as everyone knows, we're 
gonna do 990 minutes of code and

70
00:03:27,640 --> 00:03:31,720
see where we can get I I'm 
hoping to play around with that 

71
00:03:31,720 --> 00:03:33,680
right. 
But James tells me that it's 

72
00:03:33,680 --> 00:03:36,320
probably not gonna work for now,
but we'll see. 

73
00:03:36,440 --> 00:03:39,400
We'll, we'll just try it out 
that way that, you know, my boss

74
00:03:39,400 --> 00:03:41,840
doesn't get mad at me either. 
Right. 

75
00:03:41,920 --> 00:03:44,200
Yeah. 
And and maybe we can investigate

76
00:03:44,200 --> 00:03:48,000
doing some other sync versions 
that other people do with other 

77
00:03:48,040 --> 00:03:50,520
platforms that we don't directly
integrate in so. 

78
00:03:50,520 --> 00:03:55,480
For sure and just for everyone I
know that hasn't heard I should 

79
00:03:55,480 --> 00:03:58,680
hold up a sticker here I've got 
my sticker pack nearby. 

80
00:03:58,960 --> 00:04:04,840
We'll, we'll go with this app, 
right App right went one point O

81
00:04:04,840 --> 00:04:08,640
today. 
So yeah, very exciting. 

82
00:04:09,000 --> 00:04:10,840
Yeah, you guys have been killing
it over there. 

83
00:04:10,840 --> 00:04:12,600
I've been keeping track and 
tabs. 

84
00:04:13,040 --> 00:04:15,040
I gotta tell you, it's it's 
nothing to do with me. 

85
00:04:15,040 --> 00:04:17,519
That engineering team is 
amazing. 

86
00:04:17,959 --> 00:04:20,000
That's how I feel about me at my
place. 

87
00:04:20,000 --> 00:04:21,360
I'm just laying down to do with 
me. 

88
00:04:21,360 --> 00:04:23,320
I just show it off all the time.
Yeah, that's all I. 

89
00:04:23,320 --> 00:04:27,880
Do I love showing it off so I'm 
right in the middle of upgrader?

90
00:04:27,880 --> 00:04:29,960
I would show it off like right 
before we jumped down. 

91
00:04:29,960 --> 00:04:32,960
It was terrible timing, but. 
That's the way it works. 

92
00:04:32,960 --> 00:04:35,320
That's the way it works. 
All right, So what are we going 

93
00:04:35,320 --> 00:04:38,080
to get into? 
Are we doing a next JS app or 

94
00:04:38,080 --> 00:04:40,560
React app? 
Yeah, we can throw at me. 

95
00:04:41,000 --> 00:04:43,400
Yeah, we can do Next JS. 
That is my favorite. 

96
00:04:44,760 --> 00:04:46,920
Everybody knows I am a big Next 
JS fan. 

97
00:04:47,800 --> 00:04:53,800
Yeah, NPM command, yeah, Yep, 
just the standard Next JS. 

98
00:04:54,000 --> 00:04:57,080
I always forget it so. 
NPX create next app at latest. 

99
00:04:57,360 --> 00:05:00,160
Can we use TypeScript? 
If you want if you're a 

100
00:05:00,160 --> 00:05:02,920
TypeScript. 
Fan always want to use it. 

101
00:05:02,920 --> 00:05:08,080
So there we go into my old web 
directory here get no not get 

102
00:05:08,080 --> 00:05:13,000
cloned MP exits. 
Let's do this. 

103
00:05:14,200 --> 00:05:17,120
Let's call it clerk demo. 
I mean, that's super exciting, 

104
00:05:17,120 --> 00:05:21,520
right? 
Yep, that's about like 400 of 

105
00:05:21,520 --> 00:05:26,280
those in my on my MacBook. 
Clerk Demo 1, Clerk demo two. 

106
00:05:26,280 --> 00:05:27,760
You know all the essentials. 
Let's. 

107
00:05:29,360 --> 00:05:34,240
See here. 
Hello everyone, M Huggins is out

108
00:05:34,240 --> 00:05:43,680
there. 
What up Mark I'm I'm hoping 

109
00:05:43,680 --> 00:05:45,720
everything's streaming. 
Like I said, coming back from 

110
00:05:45,720 --> 00:05:48,040
vacation. 
It's been a whirlwind man like 

111
00:05:48,040 --> 00:05:51,080
right. 
I'm glad I had my my Mac studio 

112
00:05:51,080 --> 00:05:54,000
just set and ready because I 
I've been running all over the 

113
00:05:54,000 --> 00:05:54,840
place. 
That's crazy. 

114
00:05:54,840 --> 00:05:56,960
I I really want to get a Mac 
studio. 

115
00:05:57,440 --> 00:05:58,760
I just. 
Don't. 

116
00:05:58,760 --> 00:06:01,560
I just don't know. 
I don't know how I can justify 

117
00:06:01,560 --> 00:06:05,520
the business expense this year, 
but I I can, I'll, I'll think of

118
00:06:05,520 --> 00:06:07,440
something. 
There's always a delicious write

119
00:06:07,440 --> 00:06:08,760
off somewhere. 
It'll. 

120
00:06:08,760 --> 00:06:09,920
Right. 
Exactly. 

121
00:06:09,920 --> 00:06:15,000
Exactly. 
Let's see, let's see code clerk 

122
00:06:15,480 --> 00:06:18,800
demo open a new one. 
Why not? 

123
00:06:21,120 --> 00:06:24,160
OK, so we've got we've got this 
side of it. 

124
00:06:24,720 --> 00:06:28,920
Do you want me to open any docs 
or anything or like the master? 

125
00:06:29,560 --> 00:06:33,640
Yeah, I can be the docks guy. 
So yeah, the first thing you 

126
00:06:33,640 --> 00:06:38,480
need to do is install our 
package which is at clerk slash 

127
00:06:38,480 --> 00:06:41,720
Next JS. 
All one word. 

128
00:06:42,080 --> 00:06:43,640
Yep, just like that. 
Cool. 

129
00:06:44,760 --> 00:06:47,480
That one's nice and easy. 
Maybe, maybe we'll go this 

130
00:06:47,480 --> 00:06:49,240
route, maybe people will be able
to see it. 

131
00:06:49,240 --> 00:06:50,800
There you go. 
We'll try that. 

132
00:06:51,040 --> 00:06:54,440
If I if I gotta jump up like 
this, we can do that too. 

133
00:06:55,400 --> 00:06:57,400
OK. 
So that that's the only package 

134
00:06:57,400 --> 00:07:02,120
you need for clerk and then we 
need to go to the clerk 

135
00:07:02,120 --> 00:07:05,120
dashboard clerk. 
Dashboard. 

136
00:07:06,280 --> 00:07:08,640
If you just click sign in or 
sign up doesn't really matter. 

137
00:07:09,760 --> 00:07:12,680
I think I got a clerk thing 
somewhere out here. 

138
00:07:13,480 --> 00:07:16,400
We'll find out. 
No, that's good. 

139
00:07:16,400 --> 00:07:19,200
That's good enough. 
OK, So if you click add 

140
00:07:19,200 --> 00:07:22,520
application and then you can 
name your application whatever 

141
00:07:22,520 --> 00:07:25,360
you want. 
And at this point, you get to 

142
00:07:25,360 --> 00:07:29,880
decide what social logins you 
want to use, how you want users 

143
00:07:29,880 --> 00:07:31,720
to sign up, all those kinds of 
goodies. 

144
00:07:32,520 --> 00:07:34,440
Oh. 
You have a meta mask login. 

145
00:07:34,440 --> 00:07:35,720
That's we. 
Do yeah. 

146
00:07:35,720 --> 00:07:36,960
I'm gonna, I'm gonna click that 
one. 

147
00:07:36,960 --> 00:07:39,240
We'll see how messy it gets. 
Yeah, that's. 

148
00:07:39,240 --> 00:07:41,800
Fine. 
And then, yeah, if you're happy 

149
00:07:41,800 --> 00:07:47,560
with that, just click finish. 
And then at this point you're 

150
00:07:47,560 --> 00:07:49,040
basically ready to use the 
product. 

151
00:07:49,360 --> 00:07:53,920
Yeah, we, we love a bit of 
confetti in our in our line of 

152
00:07:53,920 --> 00:07:55,880
work. 
So on the left hand side, you'll

153
00:07:55,880 --> 00:08:02,120
see there's API keys under 
developers and you need, you're 

154
00:08:02,120 --> 00:08:04,920
going to definitely need the 
front end API key, which is 

155
00:08:04,920 --> 00:08:06,680
perfectly fine to show on 
stream. 

156
00:08:06,840 --> 00:08:09,720
It's just the client side. 
So let's start with that. 

157
00:08:09,720 --> 00:08:19,780
So let's create a dot m.local 
and it's going to be next under 

158
00:08:19,780 --> 00:08:26,320
score public, under score clerk,
under score public, under score 

159
00:08:26,320 --> 00:08:30,840
clerk, under score front end and
then under score API. 

160
00:08:31,760 --> 00:08:33,600
And then just drop that in and 
hit save. 

161
00:08:33,600 --> 00:08:36,720
That's what we're going to need 
for now to get all set. 

162
00:08:36,720 --> 00:08:38,520
Up. 
I like that we have monkey in 

163
00:08:38,520 --> 00:08:39,240
ours. 
That's good. 

164
00:08:39,240 --> 00:08:41,480
Hey, see, we should probably 
some. 

165
00:08:42,400 --> 00:08:45,880
Yeah, we, I, I asked. 
But you can never guarantee, 

166
00:08:45,880 --> 00:08:47,320
right? 
I understand. 

167
00:08:47,400 --> 00:08:49,400
I understand. 
You should name it. 

168
00:08:49,400 --> 00:08:51,720
James rocks my world. 
Whoa. 

169
00:08:51,720 --> 00:08:54,080
There you go. 
We'll just put that there. 

170
00:08:54,200 --> 00:08:56,680
I mean I. 
Appreciate it. 

171
00:08:57,280 --> 00:08:59,920
That's pretty awesome. 
You're rocking Mark's world. 

172
00:09:00,160 --> 00:09:01,560
At least I'm rocking somebody's 
world. 

173
00:09:03,280 --> 00:09:07,600
So under under pages, let's go 
to our app dot JS or app dot 

174
00:09:07,600 --> 00:09:09,800
TSX. 
Yep. 

175
00:09:10,160 --> 00:09:13,480
And then from here we can 
basically set up our app. 

176
00:09:13,480 --> 00:09:16,520
So we're going to import clerk 
provider. 

177
00:09:27,280 --> 00:09:29,880
Yep. 
We'll also import a couple of 

178
00:09:29,880 --> 00:09:32,640
other components. 
So we're going to import signed 

179
00:09:32,640 --> 00:09:41,800
in, signed out, and we'll also 
import sign in. 

180
00:09:44,000 --> 00:09:45,400
Yep. 
OK, cool. 

181
00:09:46,320 --> 00:09:48,960
So before we go any further, I 
guess I should explain what all 

182
00:09:48,960 --> 00:09:51,840
of these do. 
So people understand the clerk 

183
00:09:51,840 --> 00:09:55,520
provider is something you wrap 
your whole application in and 

184
00:09:55,520 --> 00:10:00,680
this allows you to essentially 
handle state in some in some way

185
00:10:00,840 --> 00:10:05,720
handle the off state. 
So yeah, go ahead and feel free 

186
00:10:05,720 --> 00:10:07,040
to wrap your application in 
that. 

187
00:10:08,080 --> 00:10:12,880
Then the other ones are 
essentially based upon the 

188
00:10:12,880 --> 00:10:14,520
state. 
So we have two components here, 

189
00:10:14,520 --> 00:10:19,360
signed in and signed out. 
Sign in allows you to wrap some 

190
00:10:19,360 --> 00:10:22,960
part of your application in it 
and that will essentially say 

191
00:10:22,960 --> 00:10:28,480
hey if the user is signed into 
clerk, go ahead and show the 

192
00:10:28,480 --> 00:10:31,600
screen otherwise the signed out 
version will show a different 

193
00:10:31,600 --> 00:10:36,120
screen. 
So we can use our app dot JS 

194
00:10:36,120 --> 00:10:38,520
here. 
I'd need something real quick. 

195
00:10:38,520 --> 00:10:40,480
It's kind of driving. 
Yeah, go for it. 

196
00:10:40,600 --> 00:10:42,560
Here we go. 
Fixed. 

197
00:10:43,120 --> 00:10:44,760
Boom, good. 
Perfect. 

198
00:10:45,320 --> 00:10:48,920
So if you wrap that component 
like the main component in the 

199
00:10:48,920 --> 00:10:51,960
signed in so. 
Above the provider. 

200
00:10:52,240 --> 00:10:58,960
No, inside the provider, OK. 
Yep, oops, signed. 

201
00:11:00,960 --> 00:11:03,960
You ever wonder like non-english
speaking people are like what 

202
00:11:03,960 --> 00:11:05,360
the heck is the difference 
between? 

203
00:11:05,440 --> 00:11:08,840
Yes, yeah, I, I worry about that
sometimes. 

204
00:11:10,640 --> 00:11:11,960
But everything's in English, 
right? 

205
00:11:12,040 --> 00:11:13,800
Almost everything that's in 
that. 

206
00:11:14,240 --> 00:11:17,720
So I imagine at some point you 
you read the docs and figure it 

207
00:11:17,720 --> 00:11:19,680
out. 
It's it's really hard to program

208
00:11:19,680 --> 00:11:22,800
I feel like, unless you know 
English right? 

209
00:11:23,440 --> 00:11:27,320
I used to have a a gentleman way
back in the day who wrote all of

210
00:11:27,320 --> 00:11:31,680
his variables in French and like
all of his functions in French. 

211
00:11:31,800 --> 00:11:35,160
So I had to learn French while 
learning to code, so I 

212
00:11:35,160 --> 00:11:39,080
understood what they did. 
We have a hot question right off

213
00:11:39,080 --> 00:11:42,160
the press. 
Is that using React context 

214
00:11:42,160 --> 00:11:45,640
under the hood? 
You you ask difficult questions 

215
00:11:45,640 --> 00:11:47,720
that I actually don't know the 
answer to. 

216
00:11:47,800 --> 00:11:49,760
Don't forget he rocks your world
or you rock the. 

217
00:11:50,040 --> 00:11:52,360
World, right? 
I rock his world and I believe 

218
00:11:52,360 --> 00:11:55,360
the answer is yes, but don't 
quote me on that. 

219
00:11:56,080 --> 00:11:58,480
We can we can bring up some 
documentation if we have time. 

220
00:11:58,480 --> 00:11:59,840
But we can dive in. 
Yeah. 

221
00:12:00,200 --> 00:12:03,320
And we can ask developers. 
I probably have. 

222
00:12:03,400 --> 00:12:04,840
Well, they might be asleep by 
now. 

223
00:12:05,280 --> 00:12:07,240
They're all in Greece, so they 
might be asleep. 

224
00:12:07,240 --> 00:12:09,200
Oh my gosh, do you get to go to 
Greece? 

225
00:12:10,120 --> 00:12:13,400
I haven't been yet. 
Colin and Braden are there right

226
00:12:13,400 --> 00:12:14,160
now. 
Wow. 

227
00:12:15,160 --> 00:12:17,680
So bring me back some olives if 
you go. 

228
00:12:18,600 --> 00:12:21,520
If I go, I will 100% do that, 
yes. 

229
00:12:23,280 --> 00:12:25,880
And then we can wrap. 
So underneath the signed in, we 

230
00:12:25,880 --> 00:12:31,280
can do signed out, which will 
basically Nope underneath it 

231
00:12:31,280 --> 00:12:35,240
completely. 
So yeah, as a separate one. 

232
00:12:35,240 --> 00:12:37,960
So this basically has two. 
And then inside of there put the

233
00:12:37,960 --> 00:12:42,840
sign in component, the very last
one. 

234
00:12:42,840 --> 00:12:44,680
There we go. 
Oops. 

235
00:12:46,480 --> 00:12:49,520
And Yep, and and that can 
actually just be a self closing 

236
00:12:49,520 --> 00:12:51,280
tag. 
It doesn't have to because we're

237
00:12:51,280 --> 00:12:54,840
not going to put anything in it.
And that's it. 

238
00:12:54,840 --> 00:12:58,440
If I'm understanding this right,
our entire application we are 

239
00:12:58,440 --> 00:13:02,080
going to say if you're signed 
out, throw up the sign in, 

240
00:13:02,800 --> 00:13:06,600
otherwise show us whatever 
component page we're on. 

241
00:13:07,680 --> 00:13:10,000
Exactly. 
The fun thing about this, and if

242
00:13:10,000 --> 00:13:13,280
it works correctly, I assume if 
we were to do any server side 

243
00:13:13,280 --> 00:13:16,640
rendering, it's always going to 
have that sign in on there 

244
00:13:16,640 --> 00:13:22,400
first, correct? 
So if you use SSR, we at Clerk 

245
00:13:22,400 --> 00:13:26,040
we actually have a different way
that you can handle redirects. 

246
00:13:26,040 --> 00:13:30,720
Otherwise, what may happen is 
Clerk will attempt because it's 

247
00:13:30,720 --> 00:13:33,880
on SSR, it will attempt to do 
something and the user may not 

248
00:13:33,880 --> 00:13:36,680
be signed in. 
So then you have to handle that.

249
00:13:36,680 --> 00:13:43,720
So instead with SSR we can 
actually look in the context and

250
00:13:43,720 --> 00:13:46,920
if there's no user, we'll just 
throw you to the sign in Page. 

251
00:13:47,160 --> 00:13:48,760
So we have a couple of 
different. 

252
00:13:48,760 --> 00:13:50,840
Ways to like handle it? 
Check that out in a minute. 

253
00:13:50,920 --> 00:13:54,960
Yeah, SSR is my favorite. 
Like of all the ways to do clerk

254
00:13:54,960 --> 00:13:58,160
stuff, like I pretty much use 
SSR solely. 

255
00:13:59,080 --> 00:14:01,800
OK, so we're basically ready to 
go. 

256
00:14:01,840 --> 00:14:10,240
So you can run NPM run dev and 
then if we go to local host 

257
00:14:10,240 --> 00:14:16,160
3000. 
All right, So at this point 

258
00:14:16,320 --> 00:14:19,200
we're authors set up. 
That's it. 

259
00:14:19,720 --> 00:14:22,320
We're we're we're good to go. 
There's nothing else for you to 

260
00:14:22,320 --> 00:14:25,600
do in theory. 
Now you can run your application

261
00:14:25,600 --> 00:14:29,320
and authentication is is done. 
Can I can I click log in and try

262
00:14:29,360 --> 00:14:29,960
it out? 
Yeah. 

263
00:14:30,280 --> 00:14:36,640
Go for it. 
Sweet it. 

264
00:14:37,880 --> 00:14:43,600
Should the SSO? 
Oh, interesting. 

265
00:14:43,760 --> 00:14:47,080
Blah blah blah failed the fetch.
Try again. 

266
00:14:48,480 --> 00:14:51,120
That's an interesting error 
message from SSS callback. 

267
00:14:51,480 --> 00:14:55,000
That's a fun one, isn't it? 
Just try. 

268
00:14:56,120 --> 00:14:58,640
Just try refreshing the local 
host again. 

269
00:14:58,920 --> 00:15:01,720
OK, I've never seen that error 
message before. 

270
00:15:02,080 --> 00:15:05,720
Interesting. 
I'll have somebody, at least I 

271
00:15:05,720 --> 00:15:08,240
have video evidence. 
This is what I like about live 

272
00:15:08,240 --> 00:15:10,080
streams, right, Because I have 
video evidence of things that 

273
00:15:10,080 --> 00:15:14,480
weird things that happen. 
Yeah, write that down and then 

274
00:15:14,480 --> 00:15:17,720
we'll do that. 
OK, so in theory, you're signed 

275
00:15:17,720 --> 00:15:20,920
in right now. 
And so we can actually add one 

276
00:15:20,920 --> 00:15:24,600
more component to the screen 
that'll allow the user that's 

277
00:15:24,600 --> 00:15:26,240
signed in to manage their 
account. 

278
00:15:26,640 --> 00:15:30,840
So underneath the signed in, but
above the component prop, Yep, 

279
00:15:30,960 --> 00:15:37,080
just here do user button. 
And that could be self closed as

280
00:15:37,080 --> 00:15:42,520
well. 
And if you go back to the app 

281
00:15:42,520 --> 00:15:46,360
now, you'll see there's a little
button up there and now you can 

282
00:15:46,360 --> 00:15:48,040
manage your account, sign in, 
sign out. 

283
00:15:49,360 --> 00:15:54,400
If you click manage account, it 
will bring you to a modal where 

284
00:15:54,400 --> 00:15:57,280
you can literally, yeah. 
And this is all built into 

285
00:15:57,280 --> 00:15:59,280
clerk. 
So there's no work for you to do

286
00:15:59,560 --> 00:16:03,280
is a whole 100% built in and 
100% customizable. 

287
00:16:03,560 --> 00:16:06,520
So if you don't like the 
colours, the shape, the look, 

288
00:16:06,520 --> 00:16:09,560
the feel, the text, whatever, 
all of that is completely 

289
00:16:09,560 --> 00:16:14,760
customizable and in code. 
So if you're using, so if you're

290
00:16:14,760 --> 00:16:18,920
using Tailwind for example, and 
you have a theme already, you 

291
00:16:18,920 --> 00:16:21,920
can essentially apply that theme
to Clark and Clark will just 

292
00:16:22,600 --> 00:16:25,080
take all of those colours and 
start showing them on screen. 

293
00:16:25,720 --> 00:16:27,640
That's really cool. 
Yeah. 

294
00:16:27,640 --> 00:16:29,600
So this screen essentially 
allows you to do a bunch of 

295
00:16:29,600 --> 00:16:33,440
stuff you can. 
I would stop about here in case 

296
00:16:33,440 --> 00:16:35,720
you want to don't scroll further
down. 

297
00:16:36,400 --> 00:16:41,120
Your IP is there just just as an
FYI, in case you're concerned 

298
00:16:41,120 --> 00:16:42,160
about exposing. 
Your IP. 

299
00:16:43,520 --> 00:16:46,160
Yeah, exactly. 
So here you can like add your a 

300
00:16:46,160 --> 00:16:48,800
new e-mail or you can connect 
another account. 

301
00:16:48,800 --> 00:16:51,040
You can add your web three 
wallet if you're using Web 3. 

302
00:16:52,600 --> 00:16:57,520
All those kinds of things can be
done nice right from the screen.

303
00:16:58,360 --> 00:17:02,320
And one more thing to show off 
before we do like any real work.

304
00:17:02,320 --> 00:17:06,920
If you sign out of the account. 
So if you just click off and 

305
00:17:06,920 --> 00:17:11,119
click there and click sign out, 
if you if you attempt to log in 

306
00:17:11,119 --> 00:17:15,880
with your same e-mail from 
Google in the e-mail address. 

307
00:17:15,880 --> 00:17:17,560
Field. 
Sorry, should have explained 

308
00:17:17,560 --> 00:17:20,920
that bad. 
Yeah, in the e-mail address 

309
00:17:20,920 --> 00:17:24,560
field, if you sign in through 
here, what we'll do is we'll 

310
00:17:24,560 --> 00:17:27,560
send you a verification code to 
your e-mail, which you don't 

311
00:17:27,839 --> 00:17:29,240
have. 
If you can find it, great. 

312
00:17:29,240 --> 00:17:30,680
If you don't, that's fine as 
well. 

313
00:17:32,360 --> 00:17:35,080
Essentially what we'll do is 
we'll link those accounts 

314
00:17:35,080 --> 00:17:38,160
together. 
So as a user, if you've 

315
00:17:38,160 --> 00:17:44,000
forgotten that you've signed up 
with Google or Twitch or Twitter

316
00:17:44,000 --> 00:17:47,040
or whatever your social provider
is, and you're just like, oh, I 

317
00:17:47,040 --> 00:17:48,360
must have used my e-mail for 
this. 

318
00:17:48,720 --> 00:17:52,240
If you type your e-mail in, 
we'll just go and attach that to

319
00:17:52,240 --> 00:17:55,120
your account. 
That is really amazing because I

320
00:17:55,120 --> 00:17:58,880
find that like those two pieces 
the most frustrating when I'm 

321
00:17:58,880 --> 00:18:02,720
dealing with like Firebase 
authentication, especially like 

322
00:18:02,720 --> 00:18:06,280
when someone can't remember what
you'd login, social login 

323
00:18:06,280 --> 00:18:08,880
service they used and then 
they're like throwing an e-mail 

324
00:18:08,880 --> 00:18:10,640
in and it's a mess. 
Yep. 

325
00:18:10,760 --> 00:18:13,040
And, and, and it's, there's 
nothing worse than a user 

326
00:18:13,040 --> 00:18:17,120
signing up for a new account 
because they're like, I swear I 

327
00:18:17,120 --> 00:18:20,360
use my e-mail address and they 
actually use like Google author 

328
00:18:20,360 --> 00:18:23,680
or whatever. 
So we have that as a feature. 

329
00:18:23,680 --> 00:18:26,240
Automatic account linking is 
free. 

330
00:18:26,240 --> 00:18:28,840
It's, it's on the free tier. 
So even if you're just playing 

331
00:18:28,840 --> 00:18:32,600
around the the platform, it's 
100% free and it takes that 

332
00:18:32,600 --> 00:18:34,800
burden away. 
We should check that for a 

333
00:18:34,800 --> 00:18:37,040
minute. 
So let's see if let's see here 

334
00:18:37,080 --> 00:18:40,360
clerk.gov, let's check out the 
pricing. 

335
00:18:41,200 --> 00:18:44,280
Yeah, it's there right on the 
right hand side, pricing price 

336
00:18:44,280 --> 00:18:46,920
of four docks. 
You guys are using this like 

337
00:18:47,160 --> 00:18:51,400
unless it's my monitor this 
wild, like almost paper looking 

338
00:18:51,400 --> 00:18:53,040
background. 
It's really cool. 

339
00:18:53,920 --> 00:18:58,040
I don't know what that is. 
Yeah, yeah, we are on some pages

340
00:18:58,040 --> 00:19:01,840
like on the hero and stuff where
anything that's white, yeah, 

341
00:19:01,840 --> 00:19:04,960
it's it's like a papery. 
That's so cool. 

342
00:19:05,640 --> 00:19:07,560
Although this is about to 
change, so don't get too 

343
00:19:07,560 --> 00:19:10,800
attached to this. 
Everybody or the home page is 

344
00:19:10,800 --> 00:19:13,520
about to change and it looks 10 
times better than it does now. 

345
00:19:13,760 --> 00:19:15,520
Should have delayed this whole 
pod. 

346
00:19:16,320 --> 00:19:17,920
Great. 
One more week, right? 

347
00:19:17,920 --> 00:19:20,160
I should have delayed it one 
more week so I could show off 

348
00:19:20,160 --> 00:19:22,600
the new home page. 
It's all good. 

349
00:19:22,600 --> 00:19:25,240
So so right now we're on the 
free plan. 

350
00:19:25,240 --> 00:19:27,000
What? 
What does it mean to go to 

351
00:19:27,000 --> 00:19:29,040
hobby? 
You're getting SMS auth it looks

352
00:19:29,040 --> 00:19:31,080
like. 
Yeah, so there's some extra 

353
00:19:31,080 --> 00:19:33,400
things. 
Allow, allow lists and block 

354
00:19:33,400 --> 00:19:37,200
lists. 
So you can allow only like, you 

355
00:19:37,200 --> 00:19:40,640
know, clerk dot dev, they're the
only people that can sign up for

356
00:19:40,640 --> 00:19:44,600
your, your thing. 
You can customize all the emails

357
00:19:44,600 --> 00:19:47,560
and all the SMS messages. 
You get to remove that little 

358
00:19:47,720 --> 00:19:51,880
clerk tag that's in the left 
hand corner of a component and 

359
00:19:51,880 --> 00:19:55,120
then SMS auth. 
And the only reason SMS auth has

360
00:19:55,120 --> 00:19:59,320
been moved out of the free 
account was because we found a 

361
00:19:59,320 --> 00:20:03,160
lot of people were using SMS 
auth for like spamming people. 

362
00:20:03,200 --> 00:20:05,840
Yeah. 
So we moved it out of the the, 

363
00:20:06,160 --> 00:20:09,200
the sort of free tier into that.
Yeah, it's just been hard on the

364
00:20:09,200 --> 00:20:12,520
reason free items like 
preventing all of the misuse of 

365
00:20:12,600 --> 00:20:17,080
it. 
I so I see this .02 Mau but then

366
00:20:17,080 --> 00:20:22,520
as starting at 49, so I assume 
it's $49 plus the active users 

367
00:20:22,520 --> 00:20:30,760
or what's that look like? 
If you yeah, so it is it is 49 

368
00:20:31,080 --> 00:20:33,360
nine dollars a month I think is 
the minimum. 

369
00:20:34,240 --> 00:20:37,040
So we charge that minimum and I 
think there's a rate to how many

370
00:20:37,040 --> 00:20:38,320
miles you get, but I. 
Can't. 

371
00:20:38,320 --> 00:20:40,600
I got you. 
So you would have to add up to. 

372
00:20:41,600 --> 00:20:43,760
Right. 
Yeah. 

373
00:20:44,200 --> 00:20:47,440
And then it goes up to business 
where it starts at 200 and and 

374
00:20:47,760 --> 00:20:49,160
you know gets a bit more higher 
and higher. 

375
00:20:49,160 --> 00:20:51,680
And higher. 
That seems really reasonable to.

376
00:20:51,800 --> 00:20:54,040
Me and if you Scroll down like 
there's actually a features 

377
00:20:54,040 --> 00:20:56,840
table, I believe where it shows 
you yeah, here you go. 

378
00:20:56,840 --> 00:21:01,640
So you get 1000 monthly active 
users and then after that it's 

379
00:21:01,640 --> 00:21:06,040
two cents and that kind of gives
you a breakdown of of all the 

380
00:21:06,040 --> 00:21:09,400
things and all that extra 
features you get. 

381
00:21:09,520 --> 00:21:12,600
Who is this is interesting. 
So transactional emails that's 

382
00:21:12,600 --> 00:21:16,400
just for like your your code 
that we just sent out and 

383
00:21:16,800 --> 00:21:20,120
probably like password change 
and things like that. 

384
00:21:21,480 --> 00:21:27,040
Yes and no. 
So yes, but also no, because 

385
00:21:27,040 --> 00:21:32,800
like things like things like 
password resets, you know, magic

386
00:21:32,800 --> 00:21:37,120
links or OTP links, things like 
that, those are all included in 

387
00:21:37,120 --> 00:21:39,880
this verification slash 
invitation emails. 

388
00:21:40,520 --> 00:21:44,480
These are actual separate from 
from that. 

389
00:21:44,480 --> 00:21:46,920
So you can do transactional 
emails outside of those. 

390
00:21:47,600 --> 00:21:49,480
We can. 
We can do those for you as well.

391
00:21:49,840 --> 00:21:51,600
That's really cool. 
I'm like sitting here thinking 

392
00:21:51,600 --> 00:21:55,000
like can I replace some of my 
transactional e-mail stuff? 

393
00:21:55,000 --> 00:21:57,520
And then you got Firebase author
like what? 

394
00:21:57,520 --> 00:21:59,320
What are all the things I can 
get rid of? 

395
00:22:00,120 --> 00:22:01,600
All of it. 
Just get rid of anything that's 

396
00:22:01,600 --> 00:22:03,240
Firebase off. 
Just put in clerk. 

397
00:22:03,240 --> 00:22:05,840
We'll I'll help you out. 
So here's here's a huge 

398
00:22:05,840 --> 00:22:08,640
question. 
I have a bunch of users on 

399
00:22:08,640 --> 00:22:11,200
Firebase. 
Can we use those? 

400
00:22:11,280 --> 00:22:12,680
Like what's that process look 
like? 

401
00:22:12,680 --> 00:22:18,800
Yeah, so we can actually export 
users from Firebase and put them

402
00:22:18,800 --> 00:22:21,800
into Clerk without the user 
actually knowing. 

403
00:22:23,240 --> 00:22:26,120
So you're you'd have to like 
essentially convert services 

404
00:22:26,120 --> 00:22:28,640
though at some point. 
Yeah, yeah. 

405
00:22:28,640 --> 00:22:30,960
At some point you'd have to 
convert your auth service from 

406
00:22:30,960 --> 00:22:34,560
one to the other. 
But we offer like we actually 

407
00:22:34,560 --> 00:22:37,400
have documentation that shows 
you how to do it and the script 

408
00:22:37,400 --> 00:22:38,560
and everything that comes along 
with it. 

409
00:22:38,560 --> 00:22:42,080
So to try and make it as easy as
possible to to switch from one 

410
00:22:42,080 --> 00:22:44,440
to the other. 
And if it's more complicated 

411
00:22:44,440 --> 00:22:49,080
than a simple auth switch, like 
we have people to help if you 

412
00:22:49,160 --> 00:22:54,520
see, which is just me probably. 
So it's me, but yeah, so I'm. 

413
00:22:54,520 --> 00:22:57,520
Pricing springs directly. 
Yeah, just call me, send me a 

414
00:22:57,520 --> 00:22:58,840
Twitter DN any. 
Time of day. 

415
00:22:59,360 --> 00:23:01,920
Yeah, any time of day, you won't
get an answer after about 5:00 

416
00:23:01,920 --> 00:23:06,200
PM, but you can try, Yeah. 
And then we have offerings for 

417
00:23:06,200 --> 00:23:08,320
start-ups too. 
So like if you're a start up, 

418
00:23:08,720 --> 00:23:13,560
there's pricing can we can give 
you like six months free and 

419
00:23:13,960 --> 00:23:17,440
some other stuff too so that you
can scale your business 1st and 

420
00:23:17,440 --> 00:23:22,680
then worry about it later. 
Nice, cool. 

421
00:23:22,680 --> 00:23:24,680
Where do we head next? 
Like. 

422
00:23:25,080 --> 00:23:28,440
Well. 
Off like how my username ended 

423
00:23:28,440 --> 00:23:29,680
up in here. 
Yeah. 

424
00:23:29,680 --> 00:23:31,240
So if you go to users in the 
top. 

425
00:23:32,600 --> 00:23:35,120
Users. 
Yep, you'll see there's your 

426
00:23:35,120 --> 00:23:38,720
your coding cat. 
And if you click on it, you can 

427
00:23:38,720 --> 00:23:40,640
click on view profile. 
Just click on it, either one, 

428
00:23:41,040 --> 00:23:44,320
and you can see that there's not
a separate account for that 

429
00:23:44,320 --> 00:23:47,280
first one. 
And you can see that your e-mail

430
00:23:47,280 --> 00:23:49,720
address and social accounts are 
exactly the same. 

431
00:23:50,080 --> 00:23:53,360
Gotcha. 
So none of that has changed you.

432
00:23:53,360 --> 00:23:55,480
You're good to go in in that 
sense. 

433
00:23:56,880 --> 00:24:00,240
But if it was a different e-mail
obviously, and we couldn't match

434
00:24:00,240 --> 00:24:02,800
them because let's say your 
Twitch account is a different 

435
00:24:02,800 --> 00:24:04,280
e-mail, obviously those wouldn't
be linked. 

436
00:24:04,280 --> 00:24:07,440
But users can link in other 
ways. 

437
00:24:07,920 --> 00:24:10,960
So from the user profile, like 
if your web three wallet is 

438
00:24:10,960 --> 00:24:14,240
obviously doesn't have your 
e-mail address attached to it, 

439
00:24:15,480 --> 00:24:18,920
you could add it from the user 
profile screen and it will get 

440
00:24:18,920 --> 00:24:20,920
linked to this account 
automatically. 

441
00:24:20,920 --> 00:24:23,160
So that even if you signed up 
with a web three wallet, it 

442
00:24:23,160 --> 00:24:25,880
would be the same one. 
It would have your other emails 

443
00:24:25,880 --> 00:24:27,560
and everything attached to it. 
Sweet. 

444
00:24:28,280 --> 00:24:30,440
Tell me more about this metadata
down here. 

445
00:24:31,400 --> 00:24:32,800
Yeah. 
So we have three types of 

446
00:24:32,800 --> 00:24:35,640
metadata at Clerk. 
There's public metadata, private

447
00:24:35,640 --> 00:24:41,080
metadata and unsafe metadata. 
Each one of these can be 

448
00:24:41,080 --> 00:24:45,560
accessed in different sections 
of your application and updated 

449
00:24:45,560 --> 00:24:48,840
in different sections. 
So public, that obviously can be

450
00:24:48,840 --> 00:24:53,280
updated on either the front end 
or the back end. 

451
00:24:53,680 --> 00:24:56,960
That makes kind of sense. 
Private can only be read and 

452
00:24:56,960 --> 00:25:01,160
updated on the back end and 
unsafe can be read on the front 

453
00:25:01,160 --> 00:25:04,120
end and the back end, but only 
updated on the back end. 

454
00:25:05,000 --> 00:25:09,120
So if you need something like a 
good example is like Stripe, 

455
00:25:10,080 --> 00:25:12,200
like a Stripe account ID or 
whatever, where you've they've 

456
00:25:12,200 --> 00:25:14,560
made a payment, you could have 
put that in your public 

457
00:25:14,560 --> 00:25:17,680
metadata, have access to it 
somewhere on the account. 

458
00:25:18,000 --> 00:25:20,240
So you don't have to make an 
additional call to your database

459
00:25:20,240 --> 00:25:24,680
to see, oh, this person does 
they do they still have X or Y 

460
00:25:24,720 --> 00:25:28,040
or have they paid their one time
fee or anything like that? 

461
00:25:28,040 --> 00:25:31,160
You could handle that all on. 
On this side, nice. 

462
00:25:31,160 --> 00:25:35,960
Trying to save you a bit of like
to Firebase's custom attributes 

463
00:25:35,960 --> 00:25:37,120
as well. 
Right. 

464
00:25:37,240 --> 00:25:39,240
Yeah, same idea. 
Awesome. 

465
00:25:41,360 --> 00:25:43,600
All right, where should we head 
next? 

466
00:25:44,000 --> 00:25:46,160
Yeah. 
What should we, I guess we 

467
00:25:46,160 --> 00:25:50,520
should talk about customization.
Yeah, so, so there's this option

468
00:25:50,520 --> 00:25:54,000
here. 
So Clerk gives you two different

469
00:25:54,000 --> 00:25:57,720
ways to essentially have the 
signing components. 

470
00:25:58,320 --> 00:26:02,880
There is the hosted version 
which is 100% hosted by us and 

471
00:26:02,880 --> 00:26:06,360
it basically redirects to a URL 
and then you just type in and 

472
00:26:06,360 --> 00:26:09,720
then it re decks back to your 
application or you do like the 

473
00:26:09,720 --> 00:26:12,520
mounted components, which is 
what we have in our application 

474
00:26:12,520 --> 00:26:15,680
right now. 
So anything that's in this 

475
00:26:15,680 --> 00:26:22,800
section here under branding or 
themes, etcetera will be done 

476
00:26:22,800 --> 00:26:26,960
for the hosted components only. 
So if you have the mounted 

477
00:26:26,960 --> 00:26:30,520
components that we do, all of 
that can, all the customization 

478
00:26:30,520 --> 00:26:34,240
is done in the code, OK, but we 
can show this off real quick. 

479
00:26:34,560 --> 00:26:37,800
Branding, obviously you can add 
your logo and your icons, you 

480
00:26:37,800 --> 00:26:40,320
can upload those. 
And then under the theme 

481
00:26:40,320 --> 00:26:42,880
section, there's a really basic 
CSS theming. 

482
00:26:43,680 --> 00:26:49,240
Just sets a few colours, a few 
fonts, all those kinds of 

483
00:26:49,240 --> 00:26:51,080
things. 
And then those will get updated 

484
00:26:51,080 --> 00:26:54,080
as soon as you click apply 
change to the hosted components.

485
00:26:54,600 --> 00:26:56,240
Oh you guys need a search on 
here. 

486
00:26:56,600 --> 00:27:01,280
Can I add that to your request? 
Yeah, yeah, I'll, I'll, I'll put

487
00:27:01,280 --> 00:27:03,160
it in. 
I've thought that too when I 

488
00:27:03,160 --> 00:27:05,920
first first started. 
Like there should be a search 

489
00:27:05,920 --> 00:27:09,120
here, you're right. 
Or or at least a way to to flip 

490
00:27:09,120 --> 00:27:12,000
through them really quickly. 
I don't think my new Nito is not

491
00:27:12,000 --> 00:27:13,000
on here. 
Bummer. 

492
00:27:13,080 --> 00:27:17,440
Probably it's a very limited 
amount, but if you click apply, 

493
00:27:17,680 --> 00:27:20,200
we can actually show this off. 
So if you click apply and if you

494
00:27:20,200 --> 00:27:24,360
scroll up on the left hand side,
we give you component previews 

495
00:27:25,080 --> 00:27:27,840
where it says sign up up a bit 
further to the left. 

496
00:27:27,840 --> 00:27:30,040
Yep, you're just on it. 
Yep. 

497
00:27:30,240 --> 00:27:35,400
Those If you click that, Yep, 
and then just click sign out, 

498
00:27:36,800 --> 00:27:38,240
you can see that all the colors 
have changed now. 

499
00:27:38,240 --> 00:27:40,560
Now it's purple. 
So for your hosted component, 

500
00:27:40,560 --> 00:27:42,440
it's a media. 
As soon as you make those 

501
00:27:42,440 --> 00:27:44,480
changes, it's a media. 
You don't have to worry about 

502
00:27:44,480 --> 00:27:46,440
code, you don't have to worry 
about themes, etcetera, 

503
00:27:46,440 --> 00:27:49,280
etcetera. 
But if we're to come out to this

504
00:27:49,280 --> 00:27:52,160
version. 
As you can see, still the same. 

505
00:27:52,320 --> 00:27:54,440
Yeah, cool. 
Because it's because it's on 

506
00:27:54,440 --> 00:27:57,040
your machine. 
We have this appearance property

507
00:27:57,560 --> 00:28:00,880
and this appearance prop can 
change basically anything you 

508
00:28:00,880 --> 00:28:04,920
see there. 
You can target in some way and 

509
00:28:04,920 --> 00:28:08,920
we can quickly show that off 
before we get into like hardcore

510
00:28:09,440 --> 00:28:12,840
APIs and all that kind of stuff.
So if you go back to the code, 

511
00:28:15,000 --> 00:28:17,720
so in your, you have a couple of
options here. 

512
00:28:17,880 --> 00:28:22,640
So you can hit it directly in 
the clerk provider or we can hit

513
00:28:22,640 --> 00:28:25,240
it in the sign in component. 
So we'll do the clerk provider 

514
00:28:25,240 --> 00:28:27,040
because I think it's just easier
and cleaner. 

515
00:28:28,320 --> 00:28:33,440
So the property is called 
appearance and then you want to 

516
00:28:33,440 --> 00:28:36,200
put a double set of parentheses 
around it. 

517
00:28:36,200 --> 00:28:40,160
Yep. 
And then if you do layout, that 

518
00:28:40,160 --> 00:28:45,200
should be one and then do it's 
an object. 

519
00:28:45,200 --> 00:28:47,720
So you can do another set of 
parentheses. 

520
00:28:47,720 --> 00:28:50,800
Yep. 
And then you should get 

521
00:28:50,800 --> 00:28:55,240
Intellisense if you do command 
and whatever it is control enter

522
00:28:55,240 --> 00:28:57,280
or. 
I always messed up. 

523
00:28:57,280 --> 00:29:05,240
Whatever the whatever the VS 
Code is maybe not let's do check

524
00:29:05,280 --> 00:29:13,680
we'll just go here Scroll down. 
Oh we can do it directly on the 

525
00:29:13,680 --> 00:29:16,320
sign in component. 
Let's do that instead so go back

526
00:29:17,080 --> 00:29:21,240
Yep and do sign in instead of 
layout start with sign in so 

527
00:29:21,240 --> 00:29:24,800
appearance prop stays the same. 
Oh, OK, just the layout. 

528
00:29:24,800 --> 00:29:27,720
Just get rid of that for a SEC 
and we'll do sign in. 

529
00:29:28,720 --> 00:29:30,440
There we go. 
Oops, it's. 

530
00:29:31,160 --> 00:29:33,440
Yep, you got it. 
And then inside of that we 

531
00:29:33,440 --> 00:29:36,240
should now have Intellisense, I 
think. 

532
00:29:36,880 --> 00:29:39,080
Apparently not. 
It might be my machine, I'm not 

533
00:29:39,120 --> 00:29:40,240
sure. 
Or it could be that we're 

534
00:29:40,240 --> 00:29:42,520
missing types. 
Actually, that's probably what 

535
00:29:42,520 --> 00:29:44,520
the problem is. 
We probably didn't install at 

536
00:29:44,520 --> 00:29:46,920
clerks slash types. 
Oh OK. 

537
00:29:47,320 --> 00:29:48,760
Usually it complaints about 
them. 

538
00:29:48,760 --> 00:29:51,680
Surprised. 
Yeah. 

539
00:29:52,640 --> 00:29:56,440
Yeah, you can install the types 
if you wanna shut the local host

540
00:29:56,480 --> 00:29:58,840
down. 
You should just. 

541
00:29:59,280 --> 00:30:09,730
Be at clerk slash types. 
Oh, you probably. 

542
00:30:09,730 --> 00:30:10,610
Can't see. 
I can't see. 

543
00:30:10,770 --> 00:30:13,970
Sorry, sorry, sorry. 
Yeah, that's the one. 

544
00:30:16,450 --> 00:30:22,570
And while you're doing that, I 
can pull up my in case for some 

545
00:30:22,570 --> 00:30:27,720
reason types don't work. 
I have some many different clerk

546
00:30:27,720 --> 00:30:30,160
demos that have all sorts of 
customization. 

547
00:30:34,800 --> 00:30:37,440
It acts like that's like a 
generic or something, I don't 

548
00:30:37,440 --> 00:30:41,000
know why. 
Sign in. 

549
00:30:41,280 --> 00:30:44,680
Yeah, interesting. 
What we can do, we can do it 

550
00:30:44,680 --> 00:30:47,400
without. 
I have the I have the brain 

551
00:30:47,400 --> 00:30:52,640
power, he says. 
All right, so let's start with, 

552
00:30:54,640 --> 00:30:57,920
let's just do something easy. 
Let's do elements so. 

553
00:30:58,480 --> 00:31:01,880
Yep, now it's it's funny, as 
soon as I started. 

554
00:31:02,160 --> 00:31:03,960
Yeah, now, now it knows what 
it's doing. 

555
00:31:04,440 --> 00:31:08,600
Yeah, let's do elements and 
that's another object and we'll 

556
00:31:08,600 --> 00:31:18,400
do form button, primary. 
And then you can do color. 

557
00:31:19,440 --> 00:31:23,520
So it's just do color and set 
that to a color and then maybe 

558
00:31:23,520 --> 00:31:30,680
do a background color. 
Does it take like, Yep, probably

559
00:31:30,760 --> 00:31:32,760
pound, Maybe? 
Yep, Yep. 

560
00:31:32,960 --> 00:31:37,000
And then you can also do like BG
color or background color. 

561
00:31:37,560 --> 00:31:39,280
I think it's probably background
color, yeah. 

562
00:31:41,120 --> 00:31:43,120
And then give that whatever 
color you want. 

563
00:31:43,960 --> 00:31:45,600
Maybe we'll just stick with 
white. 

564
00:31:45,600 --> 00:31:48,000
I'll I'll make it green. 
So it's obvious for now, but. 

565
00:31:48,280 --> 00:31:50,400
There we go. 
And then if you just hit save 

566
00:31:50,520 --> 00:31:55,400
and then go back to the code, 
oh, there you go, it's already 

567
00:31:55,400 --> 00:31:56,480
changed. 
And it looks rough. 

568
00:31:56,480 --> 00:31:58,480
So yeah, it looks rough right 
now. 

569
00:31:58,480 --> 00:32:00,280
That's fine. 
It looks about as good as all of

570
00:32:00,280 --> 00:32:03,800
my designs. 
But yeah, so you have the 

571
00:32:03,800 --> 00:32:07,320
ability to essentially hit any 
form element that we have. 

572
00:32:07,760 --> 00:32:11,680
So that's option #1. 
Oops, sweet, I love it. 

573
00:32:12,480 --> 00:32:14,240
So yeah, there you go, nice and 
purple. 

574
00:32:14,240 --> 00:32:19,760
But for example, you may want 
every single color background to

575
00:32:19,760 --> 00:32:22,040
be a specific color, right? 
So maybe you want all your 

576
00:32:22,040 --> 00:32:24,840
backgrounds to be yellow so you 
can actually hit something 

577
00:32:24,840 --> 00:32:27,760
called variables instead. 
So if you go back to the code 

578
00:32:28,200 --> 00:32:31,800
and underneath your elements, if
you just do another object 

579
00:32:31,800 --> 00:32:39,800
called variables and then we can
just hit color primary and that 

580
00:32:39,800 --> 00:32:43,920
will be primary color of text. 
So you might want to choose a 

581
00:32:43,920 --> 00:32:45,520
different color just to show it 
off. 

582
00:32:47,040 --> 00:32:49,240
You can type in literally red. 
Yeah, I was going to say red 

583
00:32:49,280 --> 00:32:52,680
literally works every time. 
So you can see like this sign up

584
00:32:52,680 --> 00:32:54,960
little down here where the link 
is. 

585
00:32:54,960 --> 00:32:56,680
That's the color primaries 
that's changed. 

586
00:32:57,600 --> 00:33:03,400
And if you go back and we do 
color background as the next one

587
00:33:04,680 --> 00:33:06,400
and you just do whatever color 
you want. 

588
00:33:06,560 --> 00:33:10,240
I like yellow or purple. 
Yellow's good, yeah, And it's 

589
00:33:10,240 --> 00:33:11,760
amazing blue. 
Yeah. 

590
00:33:12,200 --> 00:33:16,920
So yeah, real break. 
But you, you obviously if you 

591
00:33:16,920 --> 00:33:20,240
signed in now and went to the 
user profile, that background 

592
00:33:20,240 --> 00:33:22,000
yellow would also be there as 
well. 

593
00:33:22,000 --> 00:33:25,960
So if you quickly sign in and 
click the use button and then go

594
00:33:25,960 --> 00:33:29,480
to manage account, no it won't 
because we did it in sign in 

595
00:33:29,560 --> 00:33:30,640
totally like. 
All right. 

596
00:33:31,000 --> 00:33:34,120
I'm so sorry if you've done it, 
you could. 

597
00:33:34,560 --> 00:33:36,920
Yeah, you can actually just pull
all of those elements and the 

598
00:33:36,920 --> 00:33:41,200
variables out or the variables 
out and just put it underneath 

599
00:33:41,560 --> 00:33:44,280
and that will apply it globally 
in the appearance property. 

600
00:33:47,240 --> 00:33:49,640
Here. 
Yep, yeah, there you go. 

601
00:33:50,400 --> 00:33:54,440
So so you have options on how 
you can style and every element 

602
00:33:54,440 --> 00:33:59,080
you can pinpoint and change. 
You can do it specifically for 

603
00:33:59,080 --> 00:34:02,920
each component or just do a 
worldwide like every element 

604
00:34:02,920 --> 00:34:06,000
that has this name. 
I want to be green every element

605
00:34:06,280 --> 00:34:10,560
or variable once. 
This is this like CSS variables 

606
00:34:10,560 --> 00:34:15,560
under the hood? 
So we're using CSS? 

607
00:34:15,920 --> 00:34:17,800
Yeah. 
So I think it's CSS module. 

608
00:34:17,800 --> 00:34:21,520
No CSS variables that are 
transpiled from tailwinds. 

609
00:34:22,440 --> 00:34:23,639
Oh wow. 
OK. 

610
00:34:23,679 --> 00:34:26,080
Yeah, it it, it's pretty crazy 
under there. 

611
00:34:27,199 --> 00:34:31,920
Interesting. 
It it's yeah, Nico's who is the 

612
00:34:31,920 --> 00:34:33,560
front end engineer that did the 
work for this. 

613
00:34:33,560 --> 00:34:36,159
It's just it's crazy. 
So you can see all of these. 

614
00:34:36,679 --> 00:34:38,480
You probably can't see it very 
well on stream. 

615
00:34:38,840 --> 00:34:40,520
Might need to bump up the 
console. 

616
00:34:40,560 --> 00:34:45,159
Plus Sir. 
If you see there is like CL 

617
00:34:45,159 --> 00:34:49,840
internal something, something, 
something and then there's one 

618
00:34:49,840 --> 00:34:52,280
next to it another class like CL
NAV bar. 

619
00:34:52,880 --> 00:34:54,880
So the NAV bar is actually the 
element. 

620
00:34:54,880 --> 00:34:57,920
So you can actually hit just NAV
bar in your elements and that 

621
00:34:57,920 --> 00:35:01,800
will change the NAV bar or 
scroll box or page or whatever 

622
00:35:01,800 --> 00:35:04,280
you pick. 
So that's how you can find out 

623
00:35:04,280 --> 00:35:08,120
which elements you want to hit, 
which makes it really easy. 

624
00:35:08,440 --> 00:35:11,000
That is really cool. 
Yeah, this is a brand new 

625
00:35:11,000 --> 00:35:12,800
feature by the way. 
It's only been out like three or

626
00:35:12,800 --> 00:35:16,600
four weeks. 
So it it's it's definitely come 

627
00:35:16,600 --> 00:35:18,640
a long way before none of this 
was possible. 

628
00:35:19,080 --> 00:35:22,880
It was, you just had that, the 
dashboard that we looked at and 

629
00:35:22,880 --> 00:35:25,760
that was it. 
You couldn't do any other edits.

630
00:35:25,760 --> 00:35:29,360
So we've really made it as easy 
as possible to to, you know, 

631
00:35:29,360 --> 00:35:34,280
make your brand and Colin and I,
Colin is the Co founder. 

632
00:35:34,400 --> 00:35:37,920
We've had some fun with it. 
We recreated the Reddit login 

633
00:35:37,920 --> 00:35:40,960
page. 
I created the Skillshare login 

634
00:35:40,960 --> 00:35:42,920
page. 
Like we've been having fun just 

635
00:35:42,920 --> 00:35:46,320
rebuilding, you know, different,
different kind of things. 

636
00:35:47,560 --> 00:35:50,760
And you can actually see much 
better designs in our 

637
00:35:50,760 --> 00:35:55,720
documentation if you go yeah, to
that one. 

638
00:35:55,720 --> 00:35:58,960
If you go to products and go to,
there should be like a 

639
00:35:58,960 --> 00:36:01,360
customization under the 
components section. 

640
00:36:02,760 --> 00:36:07,400
And if you Scroll down a little 
bit and so you can see these. 

641
00:36:07,400 --> 00:36:11,040
And if you click on them, these 
buttons, light, dark, simple 

642
00:36:11,040 --> 00:36:15,680
wave on the right hand side. 
We actually give you the way to 

643
00:36:15,680 --> 00:36:18,240
create these yourself if you so 
wished. 

644
00:36:18,680 --> 00:36:22,840
That's really cool. 
Yeah, we we did some cool ones. 

645
00:36:23,680 --> 00:36:26,000
That one's wild right there. 
Right. 

646
00:36:26,640 --> 00:36:30,000
So, yeah, so there's a lot of 
customization that you can do 

647
00:36:30,000 --> 00:36:32,680
now. 
This didn't exist three or four 

648
00:36:32,680 --> 00:36:35,760
months ago. 
And we tried to make it as easy 

649
00:36:35,760 --> 00:36:39,080
as possible to to get started. 
Yeah, I love this. 

650
00:36:40,200 --> 00:36:45,400
Is there any JavaScript that has
to come across when you actually

651
00:36:45,400 --> 00:36:47,120
load this? 
Or is it all within the 

652
00:36:47,120 --> 00:36:50,240
components already? 
Is it just like API calls once 

653
00:36:50,240 --> 00:36:52,880
you log in? 
So for the appearance prop, 

654
00:36:53,040 --> 00:36:57,040
yeah, yeah, yeah. 
So that's all done with the 

655
00:36:57,040 --> 00:36:58,280
component itself. 
Cool. 

656
00:36:58,760 --> 00:37:00,520
So there's no extra like, yeah, 
yeah. 

657
00:37:00,520 --> 00:37:02,640
So there's no extra leverage 
that you have to do. 

658
00:37:02,640 --> 00:37:04,880
There's no extra like kilobytes 
being transferred. 

659
00:37:04,920 --> 00:37:07,480
OK. 
Yeah, a lot of times, like when 

660
00:37:07,480 --> 00:37:10,680
you're customizing this stuff, 
it pulls down another CSS file 

661
00:37:11,240 --> 00:37:14,640
and then like you, you override 
things and it's like, Oh no. 

662
00:37:14,920 --> 00:37:17,600
Yeah, yeah, this, this one is 
completely shakeable. 

663
00:37:17,600 --> 00:37:20,680
So it doesn't add any extra like
kilobytes or anything to your to

664
00:37:20,680 --> 00:37:21,960
your project. 
So love it. 

665
00:37:22,000 --> 00:37:25,440
Yeah, this is really cool. 
Man, I'm so glad it has been so 

666
00:37:25,440 --> 00:37:27,800
long since you've seen this. 
Yeah, it really has. 

667
00:37:28,840 --> 00:37:32,280
Before it was kind of like I 
don't, I don't know like this is

668
00:37:32,280 --> 00:37:35,480
OK. 
But obviously they had grander 

669
00:37:35,480 --> 00:37:38,080
plans, so. 
Yeah, it was very easy. 

670
00:37:38,080 --> 00:37:42,880
So I anyone that doesn't know 
who I am, so before I worked at 

671
00:37:42,880 --> 00:37:49,600
clerk, this is this is me. 
I used clerk for over a year in 

672
00:37:49,600 --> 00:37:53,040
every project. 
And I was one of like the first 

673
00:37:53,040 --> 00:37:58,040
people whoever like really spoke
to them about certain projects 

674
00:37:58,040 --> 00:38:01,360
and stuff like that. 
So I've seen it grow from this, 

675
00:38:01,360 --> 00:38:05,320
like this is so cool that I can 
do this really quickly to this 

676
00:38:05,320 --> 00:38:07,080
is so cool. 
I can do this really quickly. 

677
00:38:07,080 --> 00:38:09,760
And now it has all these extra 
features that like 

678
00:38:09,960 --> 00:38:12,320
customizations and and things 
like that. 

679
00:38:13,680 --> 00:38:16,600
We have like localization coming
in like a week. 

680
00:38:17,440 --> 00:38:20,760
So you can translate everything 
into the language, native 

681
00:38:20,760 --> 00:38:24,920
languages of of choice. 
Yeah. 

682
00:38:24,920 --> 00:38:26,160
So it's been crazy to see all 
that. 

683
00:38:26,160 --> 00:38:29,400
And now that I work there, I get
even more excuses to talk about 

684
00:38:29,400 --> 00:38:32,920
it all the time. 
So before I just talk about on 

685
00:38:32,920 --> 00:38:35,760
my YouTube channel all the time,
now I get to do it for a job. 

686
00:38:35,760 --> 00:38:38,640
So it worked out quite well. 
Yeah, that was awesome. 

687
00:38:38,680 --> 00:38:39,960
It was, it was a good 
transition. 

688
00:38:39,960 --> 00:38:44,720
For those who don't know James's
story, he he was let go. 

689
00:38:44,720 --> 00:38:47,800
Is that fair to say? 
Yeah, they downsized. 

690
00:38:47,800 --> 00:38:51,200
I guess it's the right, yeah. 
And and immediately clerk's 

691
00:38:51,200 --> 00:38:53,640
like, hey, like come work with 
us. 

692
00:38:53,880 --> 00:38:57,880
Yeah, it took me 12 hours from 
being let go to sign the 

693
00:38:57,880 --> 00:39:01,920
paperwork for the the new role. 
Which why I'm why I'm discussing

694
00:39:01,920 --> 00:39:03,600
this. 
It's not like a dig at James or 

695
00:39:03,600 --> 00:39:08,080
anything when he's working with 
like clerk and open source. 

696
00:39:08,320 --> 00:39:11,600
That is kind of the way for 
those who are looking for jobs 

697
00:39:11,600 --> 00:39:14,960
kind of coming up, jump into an 
open source project. 

698
00:39:15,320 --> 00:39:17,440
That's who we hire from at app, 
right? 

699
00:39:17,440 --> 00:39:20,720
When we are looking for people. 
If you're like in our repo 

700
00:39:20,720 --> 00:39:23,960
already, you know stuff and 
you're contributing, there you 

701
00:39:23,960 --> 00:39:25,520
go. 
Like why wouldn't we hire you 

702
00:39:25,960 --> 00:39:26,520
so? 
Right. 

703
00:39:26,640 --> 00:39:30,240
It's it's a lot easier to be 
like, hey, like you already know

704
00:39:30,240 --> 00:39:33,080
who I am. 
I'd really like a job there And 

705
00:39:33,080 --> 00:39:37,600
like it cuts down on like 
interviewing and other things 

706
00:39:38,000 --> 00:39:39,800
because they already know you 
have the knowledge. 

707
00:39:40,160 --> 00:39:43,160
Yeah, exactly. 
So for those new devs out there,

708
00:39:43,320 --> 00:39:45,480
just think of it. 
I I know it can be extra work 

709
00:39:45,480 --> 00:39:47,960
sometimes, but if you're 
passionate about something, go 

710
00:39:47,960 --> 00:39:49,600
for it. 
Yeah, yeah. 

711
00:39:49,600 --> 00:39:52,280
And usually you can even if you 
don't want. 

712
00:39:52,320 --> 00:39:55,560
It doesn't work out there. 
People that see you kind of 

713
00:39:55,600 --> 00:39:58,120
contributing to an open source 
or helping the community or 

714
00:39:58,120 --> 00:40:02,800
something will will, you know, 
try and help you level up or, or

715
00:40:02,800 --> 00:40:04,720
find the right people to, to get
jobs. 

716
00:40:04,920 --> 00:40:05,680
Yeah, exactly. 
That's. 

717
00:40:06,840 --> 00:40:08,800
Always been my way. 
Yeah, same. 

718
00:40:10,080 --> 00:40:14,880
OK so we did front end, can we 
do server side? 

719
00:40:15,600 --> 00:40:19,160
Sure. 
Yeah, let's we can do this in 

720
00:40:19,280 --> 00:40:22,440
using the documentation. 
Our documentation's really good 

721
00:40:22,440 --> 00:40:24,040
at like explaining how this all 
works. 

722
00:40:25,360 --> 00:40:29,520
So if you go to developers at 
the top in the mega barrier. 

723
00:40:29,720 --> 00:40:31,560
Yes. 
Yeah, and go to documentation. 

724
00:40:33,400 --> 00:40:37,200
Welcome to our documentation 
under Quick Starts and 

725
00:40:37,200 --> 00:40:38,440
Tutorials. 
I love it. 

726
00:40:39,200 --> 00:40:41,680
It's it's, it's cool. 
I like it a lot. 

727
00:40:41,720 --> 00:40:44,760
It's powered by sanity, which it
makes it really easy. 

728
00:40:45,040 --> 00:40:47,920
I just I just convinced them at 
work we should run sanity for 

729
00:40:47,920 --> 00:40:50,560
our blog back end so. 
Yeah, good. 

730
00:40:50,680 --> 00:40:53,080
Yeah, We can attest that we run 
our documentation from it. 

731
00:40:53,080 --> 00:40:55,360
So I mean, it works. 
It's. 

732
00:40:55,360 --> 00:40:58,000
Interesting. 
I'd be curious for your like 

733
00:40:58,000 --> 00:41:01,720
APIs and stuff. 
Ours are actually in the code. 

734
00:41:01,720 --> 00:41:04,400
So we we produce all of our 
documentation directly out of 

735
00:41:04,400 --> 00:41:05,880
the code. 
So it's always up to date. 

736
00:41:05,880 --> 00:41:07,360
And that was that was something 
new. 

737
00:41:07,840 --> 00:41:10,360
Yeah, so we doing that right 
now. 

738
00:41:10,360 --> 00:41:12,600
So we're, so we have two types 
of documentation. 

739
00:41:12,600 --> 00:41:16,000
We have reference material and 
then like other kind of stuff 

740
00:41:16,000 --> 00:41:18,600
like getting started guides or 
like stuff that's not 

741
00:41:18,600 --> 00:41:21,400
referenced. 
So our reference material is 

742
00:41:21,400 --> 00:41:24,800
about to do the same thing where
we're using like open API to 

743
00:41:24,800 --> 00:41:27,360
like create the documentation 
for us. 

744
00:41:27,960 --> 00:41:29,960
Right now it's a complete manual
process. 

745
00:41:29,960 --> 00:41:33,040
We have to have our devs like go
in and make the change and do 

746
00:41:33,040 --> 00:41:35,360
that kind of stuff. 
But yeah, in the future we're 

747
00:41:35,360 --> 00:41:38,880
going to do the exact same thing
and then we have a new hire 

748
00:41:38,880 --> 00:41:45,200
starting on Monday who's a good 
friend of mine who is going to 

749
00:41:45,200 --> 00:41:47,560
be doing the helping me with the
documentation. 

750
00:41:47,800 --> 00:41:49,040
That's fantastic. 
Yeah. 

751
00:41:49,040 --> 00:41:50,720
So that's that's what we're 
aiming for too. 

752
00:41:50,720 --> 00:41:52,920
So hopefully it'll it'll change 
soon. 

753
00:41:53,040 --> 00:41:55,800
We can make some blogs quicker. 
There you go. 

754
00:41:55,880 --> 00:42:00,840
So if you go to next, yes, and 
then Scroll down. 

755
00:42:02,480 --> 00:42:04,280
So we've done all this basic 
stuff. 

756
00:42:04,280 --> 00:42:06,960
We've installed Clerk's SDK, 
we've done this. 

757
00:42:06,960 --> 00:42:11,520
So we're going to need to add in
the Clerk API key and we're 

758
00:42:11,520 --> 00:42:14,120
probably going to want the JWT 
key as well. 

759
00:42:14,840 --> 00:42:17,720
Both of those shouldn't be 
exposed on stream. 

760
00:42:18,720 --> 00:42:21,640
So I don't know if you can it's.
Fine, I'll probably tear this 

761
00:42:21,640 --> 00:42:23,880
one down anyway, so that's. 
Fine, then go for it. 

762
00:42:24,680 --> 00:42:27,560
I'll show you where they. 
I'll show you where they are in 

763
00:42:27,560 --> 00:42:30,920
the in the dashboard so that you
can get them. 

764
00:42:31,120 --> 00:42:34,960
Oh, that, that did not do I 
expected I guess the comments 

765
00:42:34,960 --> 00:42:39,000
OK. 
Oh yeah, that's weird. 

766
00:42:39,000 --> 00:42:42,800
That should not happen. 
That's what we'll find out. 

767
00:42:42,800 --> 00:42:44,240
Let's see if this actually 
works. 

768
00:42:44,480 --> 00:42:46,560
OK, yes, show me where these 
keys. 

769
00:42:46,920 --> 00:42:50,320
Are so back into the API. 
Keys at the bottom should be on 

770
00:42:50,320 --> 00:42:53,600
the developer's left hand side, 
just gonna near the bottom. 

771
00:42:54,440 --> 00:42:59,960
And then if you just click show 
key on the default and then you 

772
00:42:59,960 --> 00:43:03,680
should just better copy that. 
So that's the that was that was 

773
00:43:03,680 --> 00:43:07,280
pretty good. 
That is the Clerk API key. 

774
00:43:07,640 --> 00:43:11,400
Let's see if this works. 
Let's see what was in there. 

775
00:43:14,160 --> 00:43:16,440
Oh, that got real weird. 
Yeah, that got weird. 

776
00:43:17,200 --> 00:43:19,720
And then the other one is clerk 
under score. 

777
00:43:20,720 --> 00:43:23,360
Yeah, just copy the JWT 
verification key. 

778
00:43:23,480 --> 00:43:25,240
It's on the all the way on the 
right. 

779
00:43:25,520 --> 00:43:31,760
Yep, and that one is just clerk 
under score, JWT under score key

780
00:43:34,600 --> 00:43:36,240
and then just hit save. 
All right, cool. 

781
00:43:36,760 --> 00:43:40,760
And now with next JS you don't 
have to reload anymore. 

782
00:43:41,080 --> 00:43:45,280
Oh, really? 
If you make changes to your your

783
00:43:46,160 --> 00:43:48,360
dot emvs like you don't have to 
reload anymore. 

784
00:43:48,840 --> 00:43:52,560
I did not. 
Know that it it's new for 12.2 

785
00:43:52,560 --> 00:43:53,880
or 12.3. 
Nice. 

786
00:43:53,880 --> 00:43:55,760
We might have to. 
Super great feature. 

787
00:43:56,720 --> 00:44:00,560
That's that's really cool. 
OK, so now we're ready to 

788
00:44:00,600 --> 00:44:02,960
essentially use. 
If there's an error there, I 

789
00:44:02,960 --> 00:44:04,080
can't see it just as. 
An effect? 

790
00:44:04,400 --> 00:44:09,840
Yeah, it's an error, but it's a 
web pack weird thing, so we just

791
00:44:09,840 --> 00:44:12,240
know if that's. 
Failed to fetch. 

792
00:44:12,240 --> 00:44:15,000
Interesting. 
Yeah, I, I blame that on next 

793
00:44:15,000 --> 00:44:15,840
year. 
That looks like. 

794
00:44:16,000 --> 00:44:17,640
Yeah, that looks like a next 
year's problem. 

795
00:44:17,720 --> 00:44:18,720
I think we're OK. 
We'll blame them. 

796
00:44:19,280 --> 00:44:21,240
Cool. 
OK, So if we go back to the 

797
00:44:21,240 --> 00:44:27,160
documentation. 
Yep, we can Scroll down pretty 

798
00:44:27,160 --> 00:44:30,040
far now. 
I'm gonna try to do this. 

799
00:44:30,040 --> 00:44:32,320
We'll see how this goes, so I'll
put us back. 

800
00:44:32,880 --> 00:44:38,080
Yeah, there we go. 
Side by side and try to do this.

801
00:44:38,080 --> 00:44:40,120
There we go. 
OK, we can pretty hide the 

802
00:44:40,120 --> 00:44:43,400
terminal. 
If you just do is it CTRL J? 

803
00:44:45,640 --> 00:44:49,120
There you go. 
That'll do perfect. 

804
00:44:49,120 --> 00:44:52,440
So if you Scroll down, we've 
already done this part and the 

805
00:44:52,440 --> 00:44:56,760
clerk provider. 
Should we switch out back to 

806
00:44:56,760 --> 00:45:00,840
page props? 
Yeah, so we. 

807
00:45:00,840 --> 00:45:03,800
Can go all the I'll just throw a
commit in for front end 

808
00:45:04,320 --> 00:45:06,120
something. 
Yep, that'll do. 

809
00:45:07,280 --> 00:45:18,400
And we'll rip out that, Yep, and
drop in this and the rest can go

810
00:45:18,400 --> 00:45:20,480
away, I believe, right? 
Or do we want to leave 

811
00:45:20,480 --> 00:45:24,440
something? 
We need to leave the just the 

812
00:45:24,440 --> 00:45:27,800
component page props as well. 
OK, yeah, yeah. 

813
00:45:27,840 --> 00:45:29,480
So everything else can get rid 
of that. 

814
00:45:30,240 --> 00:45:32,200
Perfect, perfect. 
Sweet. 

815
00:45:32,280 --> 00:45:36,720
And then if you Scroll down. 
So that page props part is what 

816
00:45:36,720 --> 00:45:41,360
makes SSR possible. 
We basically tap into that 

817
00:45:41,360 --> 00:45:44,080
context so we can have access to
anything in the context. 

818
00:45:45,480 --> 00:45:49,080
Makes it really easy for SSR to 
work and it allows you to do 

819
00:45:49,080 --> 00:45:53,720
some some. 
Basically I use so I also have 

820
00:45:53,720 --> 00:45:58,520
two sasses if you don't know, 
and one or both of those sasses 

821
00:45:58,520 --> 00:46:00,800
use Clerk and both them use SSR 
under the hood. 

822
00:46:01,560 --> 00:46:05,920
You guys name them now? 
So I've got cross poster which 

823
00:46:05,920 --> 00:46:09,560
allows you to cross post your 
blog posts to dev 2 and hash 

824
00:46:09,560 --> 00:46:13,040
node from your own blog. 
And then I have Roll your Tweet,

825
00:46:13,040 --> 00:46:15,160
which allows you to take a 
tweet, roll it up and make a 

826
00:46:15,160 --> 00:46:16,840
blog post out of it. 
I wasn't. 

827
00:46:17,000 --> 00:46:20,000
I wasn't aware of the first one.
Like that's pretty new. 

828
00:46:20,240 --> 00:46:22,160
I was. 
That's. 

829
00:46:22,160 --> 00:46:26,040
Pretty fun because I just wrote 
an article how we do pub sub 

830
00:46:26,040 --> 00:46:28,600
functions now to push out to 
hash known dev 2. 

831
00:46:29,080 --> 00:46:31,480
There you go. 
See, I just, I allow people to 

832
00:46:31,480 --> 00:46:33,760
do it right out of the gate. 
It's pretty, it saved me the 

833
00:46:33,760 --> 00:46:36,520
whole weekend. 
Right, It's pretty neat. 

834
00:46:36,520 --> 00:46:39,400
I, I use it all the time for my 
personal blog. 

835
00:46:39,400 --> 00:46:41,960
So it just makes it was I 
basically built it for myself. 

836
00:46:43,240 --> 00:46:45,480
I didn't care if anybody else 
ever like used it. 

837
00:46:45,520 --> 00:46:47,480
So I was just like, I'll build 
it for myself. 

838
00:46:47,680 --> 00:46:50,960
That's awesome. 
So now we can essentially 

839
00:46:51,040 --> 00:46:52,600
protecting pages is what we 
want. 

840
00:46:52,600 --> 00:46:55,000
So we don't have to worry about 
controlled components anymore 

841
00:46:56,520 --> 00:46:59,880
because these render on the 
front side, right? 

842
00:46:59,880 --> 00:47:03,000
So in the front end, those 
components render so you don't 

843
00:47:03,000 --> 00:47:04,440
have to worry about these. 
So if you Scroll down a bit 

844
00:47:04,440 --> 00:47:11,640
further and keep going using 
server side, here we go. 

845
00:47:12,000 --> 00:47:15,640
So essentially I'll kind of 
explain this documentation at 

846
00:47:15,640 --> 00:47:18,320
the same time, but essentially 
what you do here is you pick a 

847
00:47:18,320 --> 00:47:20,960
page, whatever page you want to 
protect with SSR. 

848
00:47:22,800 --> 00:47:26,400
And what we do here is we look 
to see if there's a session ID 

849
00:47:26,480 --> 00:47:29,120
in our requests. 
So if it doesn't have a clerk 

850
00:47:29,120 --> 00:47:33,240
session ID, you can force the 
user to to essentially sign in. 

851
00:47:35,360 --> 00:47:40,160
Otherwise you can let them in 
and they can do whatever, or you

852
00:47:40,160 --> 00:47:42,520
can go and get stuff from your 
database or whatever you want to

853
00:47:42,520 --> 00:47:47,640
do. 
So this is a really, really 

854
00:47:47,640 --> 00:47:51,080
basic example. 
The only thing that we're going 

855
00:47:51,080 --> 00:47:56,440
to want to do beforehand is. 
I'm not sure why it's 

856
00:47:56,440 --> 00:48:00,680
complaining about being 
overloaded with server side off 

857
00:48:00,680 --> 00:48:04,000
request resolved URL. 
That looks right. 

858
00:48:06,160 --> 00:48:11,200
Yeah. 
TypeScript just. 

859
00:48:11,240 --> 00:48:13,440
If you do it in JavaScript, it's
never going to complain we. 

860
00:48:14,080 --> 00:48:19,640
Could we could just do the old? 
Yeah, you might be able to just 

861
00:48:19,640 --> 00:48:26,600
do the dot, the any, but let's 
make sure that we return a page 

862
00:48:26,600 --> 00:48:31,480
as well. 
OK, so we have blah blah blah 

863
00:48:31,480 --> 00:48:36,080
props return. 
I don't know why we're just 

864
00:48:36,080 --> 00:48:37,880
returning. 
Oh, this is the server side. 

865
00:48:37,880 --> 00:48:38,960
OK. 
Yeah, yeah. 

866
00:48:38,960 --> 00:48:40,280
So we need to return a page as 
well do. 

867
00:48:41,800 --> 00:48:44,360
We have to export. 
Jeez, you know what? 

868
00:48:44,760 --> 00:48:46,600
I'm just going to do this. 
Just. 

869
00:48:46,600 --> 00:48:48,520
Copying the index page. 
So much easier. 

870
00:48:50,320 --> 00:48:52,560
This is me every time I run any 
demos. 

871
00:48:52,560 --> 00:48:54,040
I'm like Oh yeah how do I do 
this again? 

872
00:48:54,040 --> 00:48:57,480
Copy and paste SO. 
We call this protected page. 

873
00:48:57,480 --> 00:49:03,440
How about? 
Yep, and then you'll probably 

874
00:49:03,440 --> 00:49:07,320
have to import the next page, 
yeah. 

875
00:49:10,040 --> 00:49:12,280
Definitely doesn't like some 
things interesting. 

876
00:49:13,560 --> 00:49:16,280
We're going to we're going to 
just cheat and make this much 

877
00:49:16,280 --> 00:49:19,440
simpler. 
Yeah, oh, because it has style, 

878
00:49:19,920 --> 00:49:23,320
it has modules for CSS as well. 
So if you get rid of that class 

879
00:49:23,320 --> 00:49:30,920
name, then you should be. 
What are you complaining about? 

880
00:49:31,400 --> 00:49:32,520
Oh, because you need to get rid 
of. 

881
00:49:32,520 --> 00:49:34,480
Get rid of the full class name 
first. 

882
00:49:34,520 --> 00:49:37,560
So get rid of that whole prop. 
Yep, that should get rid of 

883
00:49:37,560 --> 00:49:40,120
that. 
Problem and then. 

884
00:49:41,360 --> 00:49:44,760
Don't need that, and then we'll 
worry about the overload problem

885
00:49:44,760 --> 00:49:47,960
in a minute. 
OK, so before we go any further,

886
00:49:48,000 --> 00:49:49,520
there's a couple of things you 
need to talk about. 

887
00:49:51,040 --> 00:49:54,320
This assumes that you're 
mounting your own sign in 

888
00:49:54,320 --> 00:49:57,280
component by this redirect, 
right? 

889
00:49:57,280 --> 00:50:01,880
So the redirect destination is 
slash sign in, which you don't 

890
00:50:01,880 --> 00:50:05,200
have right now. 
So let's create that page as 

891
00:50:05,200 --> 00:50:07,360
well. 
So the best way to do this is to

892
00:50:07,360 --> 00:50:12,440
create a folder in your pages 
called sign dash in. 

893
00:50:13,200 --> 00:50:18,760
And then inside of that, we're 
going to use two square braces, 

894
00:50:18,760 --> 00:50:27,120
dot dot dot index. 
Yeah, with the square braces 

895
00:50:27,120 --> 00:50:29,520
around the word index, not 
around TSX. 

896
00:50:29,520 --> 00:50:33,360
And it's two square braces. 
Oh yeah. 

897
00:50:34,360 --> 00:50:35,800
So it's like it was getting 
broken. 

898
00:50:36,280 --> 00:50:38,400
Yep. 
So this essentially is just a 

899
00:50:38,400 --> 00:50:42,920
catch all route and somewhere in
our documentation I think if you

900
00:50:42,920 --> 00:50:48,800
scroll up maybe or down, maybe 
it's down. 

901
00:50:49,040 --> 00:50:50,640
Let me look at my own 
documentation. 

902
00:50:53,280 --> 00:50:59,000
This is how we do developers 
documentation. 

903
00:50:59,680 --> 00:51:04,240
There should be a discussion 
about how to do this correctly. 

904
00:51:05,600 --> 00:51:09,040
Let's see, I could just use the 
search functionality I suppose. 

905
00:51:09,040 --> 00:51:13,360
Component using Clerk's 
components. 

906
00:51:13,360 --> 00:51:18,320
That might be it. 
One second using Clerk's 

907
00:51:18,320 --> 00:51:20,800
component, I forget. 
This is the only thing I forget 

908
00:51:20,800 --> 00:51:25,680
how to do every single time. 
Let's see. 

909
00:51:26,960 --> 00:51:31,920
So here's the top. 
So we want to. 

910
00:51:32,840 --> 00:51:35,400
It's funny, I feel like a lot of
people are moving to this edge. 

911
00:51:36,680 --> 00:51:41,360
Yeah, yeah, it used to be really
good until they just randomly 

912
00:51:41,360 --> 00:51:44,040
broke it and didn't tell anybody
that's using the projects. 

913
00:51:44,600 --> 00:51:47,080
Oh no. 
Oh, with the last update you 

914
00:51:47,120 --> 00:51:48,240
mean? 
Yeah, yeah, yeah. 

915
00:51:48,240 --> 00:51:53,440
With 12.2 they were just like, 
sorry, we didn't tell you. 

916
00:51:55,680 --> 00:52:01,000
OK, so the page should be 
apparently I don't use it here. 

917
00:52:02,880 --> 00:52:06,440
I guess we could just redirect 
one second. 

918
00:52:06,440 --> 00:52:08,880
I'm looking at my own code 
because I can't remember where 

919
00:52:08,880 --> 00:52:12,480
it is in the documentation. 
Yeah, I know Auth 0 does 

920
00:52:12,480 --> 00:52:15,600
something similar, so they have 
their own components. 

921
00:52:15,600 --> 00:52:18,080
They OfferUp for those 
redirects. 

922
00:52:18,080 --> 00:52:20,000
It's pretty wild. 
Yeah. 

923
00:52:20,000 --> 00:52:23,480
So we basically just say we can 
do two. 

924
00:52:23,840 --> 00:52:28,360
We have two options to do it. 
The first one is you just mount 

925
00:52:28,360 --> 00:52:32,120
your own component like we just 
did and that allows you to 

926
00:52:32,120 --> 00:52:35,040
essentially mount the component 
and redirect directly to that. 

927
00:52:35,040 --> 00:52:41,480
So you're not redirecting, but 
if you just turn this I can send

928
00:52:41,480 --> 00:52:45,440
this to you right through 
somewhere in here private chat. 

929
00:52:45,520 --> 00:52:49,120
Discord it to me if it's long. 
It's not that long. 

930
00:52:49,880 --> 00:52:53,200
Try that and I can explain this 
at the same time. 

931
00:52:53,320 --> 00:52:57,960
Let me know if you got that. 
Got. 

932
00:52:58,800 --> 00:53:04,000
It and then you're going to need
this part too. 

933
00:53:04,240 --> 00:53:07,080
Oh, I see. 
This is in app dot JS. 

934
00:53:08,440 --> 00:53:11,520
That goes in that in the SSR 
itself. 

935
00:53:12,720 --> 00:53:15,560
So go to the projected route. 
We actually don't need the sign 

936
00:53:15,560 --> 00:53:17,280
in Page at all. 
Now I've decided we'd go in a 

937
00:53:17,280 --> 00:53:21,400
different route changing, 
changing so we can use the 

938
00:53:21,400 --> 00:53:24,000
mounted version. 
So if you didn't want to self 

939
00:53:24,000 --> 00:53:25,880
mount, you could use these two 
things here. 

940
00:53:25,880 --> 00:53:30,720
So the redirect I just sent to 
to to Alex here and then the 

941
00:53:30,720 --> 00:53:32,280
redirect. 
I also just sent you another 

942
00:53:32,280 --> 00:53:37,600
message which you can just stick
anywhere. 

943
00:53:38,600 --> 00:53:39,760
It needs to be inside there, so 
Yep. 

944
00:53:39,760 --> 00:53:41,320
I bet. 
Yep. 

945
00:53:42,200 --> 00:53:43,960
OK. 
So let's just quickly talk about

946
00:53:43,960 --> 00:53:45,760
these. 
So what we're doing here for the

947
00:53:45,760 --> 00:53:53,360
destination is Oh yeah, is we're
telling it the front end to go 

948
00:53:53,360 --> 00:53:55,440
to this page. 
So essentially it will just take

949
00:53:55,440 --> 00:54:01,160
you to your component that is 
map hosted by Clark versus 

950
00:54:01,160 --> 00:54:03,400
having to to self map your own 
component. 

951
00:54:04,400 --> 00:54:09,760
And the way we decide how to 
redirect is we take the redirect

952
00:54:09,760 --> 00:54:12,320
URL, which we're just going to 
change some of these URLs. 

953
00:54:12,320 --> 00:54:15,680
So the clerk redirect URL we 
don't have right now, it's just 

954
00:54:15,680 --> 00:54:19,000
going to be local host 3000. 
So you can either put it in a 

955
00:54:19,040 --> 00:54:22,400
dot EMV or you can just type it 
in manually. 

956
00:54:22,400 --> 00:54:28,840
It's up to you. 
Yeah. 

957
00:54:28,840 --> 00:54:33,800
And that would just be local 
localhost 3000. 

958
00:54:35,440 --> 00:54:39,880
And then the front end URL is 
just the API key, the front end 

959
00:54:39,880 --> 00:54:42,600
API key, but with HTTPS in front
of it. 

960
00:54:45,200 --> 00:54:48,680
So it knows where to to resolve 
it to because it doesn't for 

961
00:54:48,680 --> 00:54:52,560
some reason in SSR it doesn't 
add that correctly. 

962
00:54:52,560 --> 00:54:55,720
So you end up just in nowhere 
land and it doesn't do anything.

963
00:54:56,520 --> 00:54:58,960
OK. 
And that that should get you 

964
00:54:59,000 --> 00:55:00,960
exactly where you want to go. 
OK. 

965
00:55:02,240 --> 00:55:05,320
So we can we can pretty much 
test this out at this point. 

966
00:55:06,280 --> 00:55:09,720
If you go to that page now, I 
imagine you're probably still 

967
00:55:09,720 --> 00:55:14,320
signed in. 
So yeah, still signed in. 

968
00:55:14,320 --> 00:55:17,200
So if you go to the dashboard. 
Oh, OK. 

969
00:55:17,840 --> 00:55:23,240
We can go to. 
You can either delete the the 

970
00:55:23,240 --> 00:55:25,920
user, that's fine, or you can 
just click the sign up, sign in 

971
00:55:26,080 --> 00:55:28,480
component preview there and 
it'll ask you to sign out. 

972
00:55:29,200 --> 00:55:30,720
Perfect. 
There we go. 

973
00:55:30,720 --> 00:55:35,760
And then if you just refresh 
that page it should just 04/04 

974
00:55:35,760 --> 00:55:38,840
not found. 
That looks like the right URL. 

975
00:55:40,640 --> 00:55:46,760
Clerk equipped monkey. 
Just make oh maybe go to the 

976
00:55:46,760 --> 00:55:48,480
dashboard. 
Maybe I typed it in wrong. 

977
00:55:50,920 --> 00:55:53,960
Yeah, that is the go to 
component preview again. 

978
00:55:53,960 --> 00:55:57,720
Just click the sign up sign in. 
Did I type it in wrong? 

979
00:55:58,520 --> 00:56:02,960
Oh, it's accounts. 
OK, yeah, so it's got the A word

980
00:56:02,960 --> 00:56:04,280
accounts in it. 
I'm sorry about that. 

981
00:56:04,280 --> 00:56:06,200
I forgot we changed that. 
No words. 

982
00:56:07,120 --> 00:56:18,000
So it's 
https://accounts.yepandthen and 

983
00:56:18,040 --> 00:56:20,400
then. 
So now if you go and then just 

984
00:56:20,560 --> 00:56:26,360
do like a back and then go 
forward to protected, now it 

985
00:56:26,360 --> 00:56:28,840
should go there. 
And then if you sign in, it 

986
00:56:28,840 --> 00:56:32,360
should redirect you back to that
page, assuming that we typed in 

987
00:56:32,360 --> 00:56:37,840
the URL correctly. 
Maybe there's something with 

988
00:56:37,840 --> 00:56:41,240
your off callback that doesn't 
seem to want to work with 

989
00:56:41,240 --> 00:56:41,720
Google. 
Try. 

990
00:56:44,720 --> 00:56:49,720
That is interesting. 
Just like doesn't seem to like 

991
00:56:49,960 --> 00:56:54,240
the Oauth callbacks. 
Yeah, let's check it out a SEC, 

992
00:56:54,360 --> 00:57:02,880
see where our errors are. 
Yep, that's definitely true. 

993
00:57:02,880 --> 00:57:06,520
I'm definitely it thinks you're 
signed in now if you go. 

994
00:57:06,960 --> 00:57:08,560
That's a really interesting 
thing. 

995
00:57:08,560 --> 00:57:10,160
I like these bucks. 
These are cool. 

996
00:57:10,320 --> 00:57:12,120
Yeah. 
If you go to the projected page 

997
00:57:12,120 --> 00:57:17,840
now, does it say protected? 
Yeah. 

998
00:57:18,440 --> 00:57:22,880
So some sort of weird Oauth call
back from when Google sends it 

999
00:57:22,880 --> 00:57:25,320
back doesn't work properly for 
some reason. 

1000
00:57:25,640 --> 00:57:26,960
Yeah, let's try I've. 
Seen that before? 

1001
00:57:26,960 --> 00:57:27,960
Let's. 
See what happens? 

1002
00:57:28,120 --> 00:57:29,840
I'm kind of curious. 
Like what? 

1003
00:57:30,440 --> 00:57:37,520
So at this point what it sends 
us to so it actually bounced 

1004
00:57:37,520 --> 00:57:40,640
into protected. 
So it made it all the way 

1005
00:57:40,640 --> 00:57:46,040
through the Oauth. 
Did we put HTPS or HTTP in front

1006
00:57:46,040 --> 00:57:48,800
of that local host by chance? 
In our rearable? 

1007
00:57:48,800 --> 00:57:51,920
No. 
Try putting HTP HTP slash slash.

1008
00:57:51,920 --> 00:57:53,520
Yeah, that. 
Let's see if that fixes it. 

1009
00:57:54,080 --> 00:58:02,480
Cool, back out. 
I could just be bad at code. 

1010
00:58:02,560 --> 00:58:10,200
That's possible. 
Great HP. 

1011
00:58:11,440 --> 00:58:12,760
Oh yeah, you go. 
I'm just bad at code. 

1012
00:58:12,880 --> 00:58:14,400
Yeah. 
No, no, it's bad at code. 

1013
00:58:14,400 --> 00:58:16,320
It's. 
All good, It's all good. 

1014
00:58:16,600 --> 00:58:19,640
These these are like the lessons
when people's watching this. 

1015
00:58:19,920 --> 00:58:22,320
We did what they would do. 
Yeah, exactly. 

1016
00:58:22,920 --> 00:58:27,400
So yeah, so now you've kind of 
protected this route and if the 

1017
00:58:27,400 --> 00:58:30,280
user is not, they can basically 
get redirected. 

1018
00:58:30,280 --> 00:58:32,280
If they are, they can get to 
this protected page. 

1019
00:58:35,600 --> 00:58:39,400
If you look at the documentation
again, we actually have a way to

1020
00:58:39,400 --> 00:58:45,040
access the user data of the user
in your SSSRSSR route. 

1021
00:58:45,640 --> 00:58:49,640
If you Scroll down further, 
there should be enabling full 

1022
00:58:49,640 --> 00:58:51,360
server side rendering. 
There it is. 

1023
00:58:52,840 --> 00:58:59,400
So what we do here is we use 
this load user true, which, 

1024
00:58:59,400 --> 00:59:03,640
yeah, you can see it there like 
inside of that, if you do load 

1025
00:59:03,640 --> 00:59:09,000
user is true, what we'll do is 
this adds an additional one 

1026
00:59:09,000 --> 00:59:13,160
network request. 
And all it does is if there's a 

1027
00:59:13,160 --> 00:59:17,640
session and they're logged in, 
we'll return that user data that

1028
00:59:17,640 --> 00:59:21,560
you can then use in your 
application before you show them

1029
00:59:21,560 --> 00:59:25,560
the page. 
So if you need that user ID or, 

1030
00:59:25,560 --> 00:59:31,000
or something similar, you can 
essentially grab it and be like,

1031
00:59:31,000 --> 00:59:33,760
OK, I've got the user ID, maybe 
I need to go and get a bunch of 

1032
00:59:33,760 --> 00:59:36,240
stuff from my database that has 
this user ID attached to it. 

1033
00:59:36,800 --> 00:59:39,480
You can then return those as 
props of data. 

1034
00:59:39,480 --> 00:59:41,960
So you don't have to do it on 
the client side after the user's

1035
00:59:41,960 --> 00:59:44,240
logged in. 
So you could do it all full 

1036
00:59:44,240 --> 00:59:46,040
server side running. 
This is what I do in my 

1037
00:59:46,040 --> 00:59:49,360
application. 
It just makes life so much 

1038
00:59:49,400 --> 00:59:53,200
easier. 
So the way that you do it is, 

1039
00:59:53,200 --> 00:59:58,480
yeah, you just add. 
We can actually just pull that 

1040
00:59:58,480 --> 01:00:00,520
whole thing if you want to just 
copy. 

1041
01:00:00,520 --> 01:00:04,320
And paste that, yeah. 
Do we need the not session for 

1042
01:00:04,320 --> 01:00:07,640
the redirect still there? 
We'll just assume that we're. 

1043
01:00:07,800 --> 01:00:11,880
You will need that if you're 
going to keep the redirects too,

1044
01:00:12,640 --> 01:00:16,960
so you'll want to keep that in, 
but you can copy and paste the 

1045
01:00:16,960 --> 01:00:18,840
feels. 
Like we just need. 

1046
01:00:19,080 --> 01:00:20,520
This yeah, that's all that's all
you need. 

1047
01:00:20,520 --> 01:00:25,160
Yep, OK, which goes right 
between the yeah, there here. 

1048
01:00:25,280 --> 01:00:30,360
Oops, Yep. 
And then we can actually pull 

1049
01:00:30,360 --> 01:00:32,440
that in somewhere in the in the 
code. 

1050
01:00:32,440 --> 01:00:38,160
So if you do like after the if 
the session ID, right. 

1051
01:00:38,160 --> 01:00:45,440
So if under session ID, after 
that we can do construction. 

1052
01:00:45,640 --> 01:00:51,400
User ID equals request auth. 
In fact, if you do a console log

1053
01:00:51,400 --> 01:00:53,960
with request off, you can see 
what's inside that, which is 

1054
01:00:53,960 --> 01:00:57,480
probably more interesting than 
doing just the user ID. 

1055
01:00:57,480 --> 01:00:58,840
We can log it out and see what's
inside. 

1056
01:01:03,440 --> 01:01:07,320
Yep, we see all the cool things 
that are inside of there. 

1057
01:01:08,240 --> 01:01:10,680
So yeah, you should be able to 
just refresh the page. 

1058
01:01:11,760 --> 01:01:18,800
OK, so inside of here is a full 
JWT which obviously you can use.

1059
01:01:19,520 --> 01:01:24,000
You've got a user ID that then 
you can then use like some of 

1060
01:01:24,000 --> 01:01:27,000
our handlers like we can get an 
e-mail address, we can get 

1061
01:01:27,360 --> 01:01:31,680
different pieces of the user. 
And then this get token is the 

1062
01:01:31,680 --> 01:01:34,040
special source as I like to call
it. 

1063
01:01:34,520 --> 01:01:38,520
So if you're using an 
integration that we have, so JWT

1064
01:01:38,520 --> 01:01:41,440
integration, which we can show 
in the dashboard real quick, 

1065
01:01:43,200 --> 01:01:46,520
essentially you can get that 
token for the user and then go 

1066
01:01:46,520 --> 01:01:48,640
ahead and use that with that 
database or whatever. 

1067
01:01:49,520 --> 01:01:53,040
So if you go to, there should be
JWT templates down a bit 

1068
01:01:53,040 --> 01:01:54,680
further. 
Yep. 

1069
01:01:54,960 --> 01:01:58,080
And then click new template. 
So these are the ones we 

1070
01:01:58,080 --> 01:02:00,240
integrate with right now. 
We've got fauna N host graph 

1071
01:02:00,240 --> 01:02:02,400
based Azura Superpace or a blank
one. 

1072
01:02:02,440 --> 01:02:06,080
If you have your JWT that you 
can use, you can use a blank one

1073
01:02:06,480 --> 01:02:09,720
if you just click on, I don't 
know, N host, I guess, or 

1074
01:02:09,720 --> 01:02:12,200
Hazura. 
Those are usually pretty easy. 

1075
01:02:12,720 --> 01:02:16,560
This gives you like an example 
of what the JWT will look like, 

1076
01:02:17,040 --> 01:02:20,040
and these are the things that 
you'll send to end host with 

1077
01:02:20,040 --> 01:02:22,680
that JWT. 
So in this example, there'll be 

1078
01:02:22,680 --> 01:02:27,760
a user ID, the default role, and
then you can add extra things. 

1079
01:02:27,760 --> 01:02:30,920
If you need the user's first and
last name for some reason, you 

1080
01:02:30,920 --> 01:02:33,680
can add those as short codes and
we can use them. 

1081
01:02:34,480 --> 01:02:39,360
So if like we were talking 
before James, before the podcast

1082
01:02:39,360 --> 01:02:42,560
started about app, right and 
we're thinking that they don't 

1083
01:02:42,560 --> 01:02:46,440
have a JWKS, Yeah. 
So let me go. 

1084
01:02:46,560 --> 01:02:49,320
I saw an open issue for it and. 
Get oh, you did OK, that's 

1085
01:02:49,480 --> 01:02:50,720
exactly what I was going to look
for. 

1086
01:02:50,720 --> 01:02:53,080
So I'm. 
Pretty sure I saw an open. 

1087
01:02:53,120 --> 01:02:55,920
I even imagined it or I saw an 
open issue for it. 

1088
01:02:56,480 --> 01:02:58,840
I like the imagining part. 
That's yeah, you know, when 

1089
01:02:58,840 --> 01:03:00,720
you're just like Googling stuff 
and you're like, I'm pretty 

1090
01:03:00,720 --> 01:03:03,760
sure. 
I think I saw that so. 

1091
01:03:03,760 --> 01:03:05,760
Yeah. 
Yeah, closed. 

1092
01:03:05,760 --> 01:03:07,480
What's that? 
Oh yeah. 

1093
01:03:07,480 --> 01:03:09,560
So there's two, there's one 
that's closed, and then I think 

1094
01:03:09,560 --> 01:03:10,960
there's an additional one that's
open. 

1095
01:03:12,440 --> 01:03:14,320
Yeah, like there's a duplicate 
ticket somewhere. 

1096
01:03:16,160 --> 01:03:21,400
Duplicate. 
Yeah, there you go, Validate JWT

1097
01:03:21,400 --> 01:03:27,360
on external API back ends 'cause
right now you you can't do that.

1098
01:03:27,440 --> 01:03:31,040
And what what the other person 
was asking for is like, hey, if 

1099
01:03:31,040 --> 01:03:34,680
you have the JWK URL, we can 
essentially do that. 

1100
01:03:34,680 --> 01:03:39,320
So that's what our JW TS do. 
So we go to the provider, let's 

1101
01:03:39,320 --> 01:03:44,000
say it's end host, and they have
an option to override that in 

1102
01:03:44,000 --> 01:03:48,520
the application. 
So we paste in the clerk JWKURLS

1103
01:03:48,520 --> 01:03:52,160
so that we can then say, hey, we
can verify this JWT and make 

1104
01:03:52,160 --> 01:03:56,000
sure it's legit. 
And then you can essentially do 

1105
01:03:56,000 --> 01:03:59,280
the rest. 
It's one of my favorite 

1106
01:03:59,280 --> 01:04:01,680
features. 
If you don't for some for some 

1107
01:04:01,680 --> 01:04:04,880
reason if you use a project that
doesn't have it, like my 

1108
01:04:04,880 --> 01:04:07,240
projects use planetscale for 
example. 

1109
01:04:09,000 --> 01:04:12,240
So for me I use planetscale. 
They don't have like. 

1110
01:04:12,480 --> 01:04:16,720
There's no token based API, so I
use the user ID to fetch my 

1111
01:04:16,720 --> 01:04:18,800
data. 
And that would just be the 

1112
01:04:18,800 --> 01:04:21,320
standard code. 
There we go. 

1113
01:04:21,640 --> 01:04:23,480
So you would receive. 
This, yeah. 

1114
01:04:23,480 --> 01:04:25,200
So I use that. 
So I have that inserted into my 

1115
01:04:25,200 --> 01:04:28,000
database somewhere and I can use
that to reference whatever I 

1116
01:04:28,000 --> 01:04:32,160
need. 
But yeah, so those are all 

1117
01:04:32,160 --> 01:04:34,480
different options that you can 
use this with. 

1118
01:04:35,520 --> 01:04:39,080
Is there this is how bad I am 
with the authentication? 

1119
01:04:39,600 --> 01:04:46,880
If if we did add the JWKS 
endpoint, is our authentication 

1120
01:04:46,880 --> 01:04:50,280
layer still going to be owned by
Clerk then? 

1121
01:04:50,280 --> 01:04:52,400
Like all the user management, 
all that stuff. 

1122
01:04:52,440 --> 01:04:54,200
Yeah. 
So that's essentially what you. 

1123
01:04:54,800 --> 01:04:58,680
Yeah. 
So instead of using app rights 

1124
01:04:58,680 --> 01:05:01,960
authentication, essentially what
would happen here is the user 

1125
01:05:01,960 --> 01:05:05,960
has decided they want like a 
provider that has maybe more 

1126
01:05:05,960 --> 01:05:10,800
features or or whatever it might
be, more options to log in, 

1127
01:05:10,800 --> 01:05:14,480
something like that, right? 
They can use us. 

1128
01:05:14,480 --> 01:05:21,000
And essentially that would take 
care of all of that, which some 

1129
01:05:21,000 --> 01:05:26,680
people may or may not like. 
I believe in the future there 

1130
01:05:26,680 --> 01:05:29,800
may be an option for us to use 
the Oauth two kind of like Auth 

1131
01:05:29,800 --> 01:05:33,280
0 does right now. 
I know it's probably on our 

1132
01:05:33,280 --> 01:05:34,960
radar. 
That's kind of what I was 

1133
01:05:34,960 --> 01:05:38,680
wondering, like if we could swap
out instead of auth 0 here, have

1134
01:05:38,680 --> 01:05:41,280
clerk as one of these and then 
we'd be golden. 

1135
01:05:42,040 --> 01:05:44,040
Yeah. 
And then and and then you know, 

1136
01:05:44,040 --> 01:05:47,320
that gives you extra leverage 
everywhere, right, Because 

1137
01:05:47,320 --> 01:05:49,960
there's probably providers that 
you have that we don't have and 

1138
01:05:49,960 --> 01:05:53,240
there's providers we have that 
you, you guys may not have or 

1139
01:05:53,680 --> 01:05:56,440
the customization somebody wants
or they already have clerk and 

1140
01:05:56,440 --> 01:05:58,320
they're moving to app, right, 
all those kinds of things. 

1141
01:05:59,360 --> 01:06:02,640
That's really cool. 
Yeah, it's, it's definitely cool

1142
01:06:02,640 --> 01:06:06,200
that you can use SSR. 
It's probably one of my favorite

1143
01:06:06,200 --> 01:06:07,400
things. 
And we could do more here, 

1144
01:06:07,400 --> 01:06:09,280
right? 
So we have the user ID in 

1145
01:06:09,280 --> 01:06:13,520
theory. 
Now we could go out and use some

1146
01:06:13,520 --> 01:06:15,960
of the clerk's handlers to like 
get information. 

1147
01:06:17,920 --> 01:06:20,440
Yeah, I'd love it. 
I mean, we have another 20 

1148
01:06:20,440 --> 01:06:22,400
minutes if you're still 
available. 

1149
01:06:22,440 --> 01:06:26,840
Yeah, of course. 
So what we could do here is if 

1150
01:06:26,840 --> 01:06:32,520
we do this piece of code, I'm 
going to send you some more code

1151
01:06:32,520 --> 01:06:35,040
because I have this handwritten 
down, so it makes life a bit 

1152
01:06:35,040 --> 01:06:38,800
easier. 
I think this will be short 

1153
01:06:38,800 --> 01:06:39,680
enough. 
Yeah. 

1154
01:06:44,240 --> 01:06:47,280
So I sent you a bit of code 
here, and we can just drop that 

1155
01:06:48,040 --> 01:06:52,400
inside the inside of SSR. 
Sorry, sorry, sorry. 

1156
01:06:52,880 --> 01:06:54,920
Yep. 
So instead of that request auth,

1157
01:06:55,040 --> 01:07:04,160
we can kinda drop that in here. 
And there's a nice comment from 

1158
01:07:04,160 --> 01:07:06,840
me that says returns the user's 
primary e-mail address. 

1159
01:07:06,840 --> 01:07:10,680
OK, so if you hit yeah, enter 
here, we can talk about it. 

1160
01:07:12,240 --> 01:07:16,280
Essentially what's happening 
here is we're asking the user 

1161
01:07:17,880 --> 01:07:21,760
because your user could have 100
e-mail addresses attached to it 

1162
01:07:21,760 --> 01:07:24,680
essentially if they wanted to 
add a bunch of emails. 

1163
01:07:25,000 --> 01:07:28,760
So instead of having just a 
primary e-mail address, we 

1164
01:07:28,760 --> 01:07:32,280
return all the e-mail addresses 
that also have the option to 

1165
01:07:32,320 --> 01:07:37,440
find a primary e-mail address. 
This is the probably the most 

1166
01:07:38,080 --> 01:07:43,720
asked question that I've got 
when people start with SSR is 

1167
01:07:43,720 --> 01:07:46,360
like, hey, how do I get the like
just I just want the primary 

1168
01:07:46,360 --> 01:07:48,760
e-mail. 
I don't want like all of them 

1169
01:07:48,800 --> 01:07:49,920
and I don't know how to figure 
this out. 

1170
01:07:49,920 --> 01:07:53,120
So I have this piece of code 
lying around, and I have a blog 

1171
01:07:53,120 --> 01:07:55,000
post that's on the clerk's 
website about it as well. 

1172
01:07:55,680 --> 01:07:59,400
So so there's actually you could
go directly to this too. 

1173
01:07:59,440 --> 01:08:02,400
Yeah, yeah, yeah. 
So, but the problem with that 

1174
01:08:02,400 --> 01:08:06,880
is, is let's say they signed in 
with their non primary e-mail, 

1175
01:08:07,320 --> 01:08:09,200
right? 
Then you're like, Oh no, those 

1176
01:08:09,200 --> 01:08:12,520
don't match like that. 
So this allows you to always 

1177
01:08:12,520 --> 01:08:15,000
100% guarantee that you get the 
primary e-mail address. 

1178
01:08:16,760 --> 01:08:20,880
So yeah, we can just run this 
piece of code and log it out and

1179
01:08:20,880 --> 01:08:25,120
see what comes back. 
Well, we, we need to log it 

1180
01:08:25,120 --> 01:08:25,560
first. 
Let's. 

1181
01:08:26,200 --> 01:08:30,560
Clear that. 
You need to update your console 

1182
01:08:30,560 --> 01:08:32,560
dot log. 
Oh, sorry. 

1183
01:08:32,640 --> 01:08:36,080
Yep. 
Just let's just be e-mail now. 

1184
01:08:36,080 --> 01:08:41,319
Yeah. 
And then OK, so here we go. 

1185
01:08:41,359 --> 01:08:43,840
So this has all sorts of 
information that you may need, 

1186
01:08:43,840 --> 01:08:45,760
right? 
So in here is your e-mail 

1187
01:08:45,760 --> 01:08:48,960
address, which is Alex at 
cloning cat dot dev. 

1188
01:08:49,680 --> 01:08:54,479
It has the verification where it
was verified from all sorts of 

1189
01:08:54,479 --> 01:08:59,000
things that you may need to for 
whatever reason, some sort of 

1190
01:08:59,000 --> 01:09:01,520
business logic in the long on 
the other side, right? 

1191
01:09:02,000 --> 01:09:05,439
Maybe you decided you no longer 
want to support a Wharf from 

1192
01:09:05,439 --> 01:09:09,439
Google, so maybe you have to 
force them to re authenticate 

1193
01:09:09,439 --> 01:09:11,200
with a new provider or something
like that. 

1194
01:09:11,399 --> 01:09:16,359
Like all those things could be 
done in this SSR or you just 

1195
01:09:16,359 --> 01:09:17,439
need their e-mail address, 
right? 

1196
01:09:19,240 --> 01:09:21,840
Which is what I use it for. 
So yeah. 

1197
01:09:21,840 --> 01:09:23,760
So we could actually put this on
screen. 

1198
01:09:23,760 --> 01:09:28,160
We could pass this as a prop. 
We could go to our database, for

1199
01:09:28,160 --> 01:09:32,680
example, if Appright database 
has the e-mail address, you 

1200
01:09:32,680 --> 01:09:36,080
could go and make a request to 
Appright and be like, hey, I 

1201
01:09:36,080 --> 01:09:42,240
need all of the sales details 
for this e-mail and and you 

1202
01:09:42,240 --> 01:09:44,680
could do that right out of the 
gate in SSR, return that 

1203
01:09:44,680 --> 01:09:48,600
information on screen. 
And I would, I would totally do 

1204
01:09:48,600 --> 01:09:52,160
that right now, but we just 
upgraded to 10 and I'm afraid 

1205
01:09:52,560 --> 01:09:56,000
like literally. 
We don't want to paranoid that 

1206
01:09:56,000 --> 01:09:59,640
we may break our own upgrades to
try and make this work. 

1207
01:09:59,640 --> 01:10:02,520
Yeah, that is totally fine. 
But that's like the theory, 

1208
01:10:02,520 --> 01:10:04,640
right? 
Like even though we can't 

1209
01:10:04,720 --> 01:10:07,800
directly integrate with app, 
right, because we're just an 

1210
01:10:07,800 --> 01:10:10,000
off, well, we're more than an 
off provider, right? 

1211
01:10:10,000 --> 01:10:13,880
We're a user identity platform. 
So we can go and do these things

1212
01:10:14,240 --> 01:10:17,200
even if we don't like aren't 
tightly integrated. 

1213
01:10:17,600 --> 01:10:21,720
And, you know, now that you're 
working there and I'm working 

1214
01:10:21,720 --> 01:10:25,400
here, like we'll work on getting
that done, however that may 

1215
01:10:25,400 --> 01:10:29,240
work. 
But yeah, like that's the whole 

1216
01:10:29,240 --> 01:10:32,760
point is that like, yeah, in 
some circumstances there just 

1217
01:10:32,760 --> 01:10:35,040
won't be an integration like 
planet scale. 

1218
01:10:35,160 --> 01:10:38,800
That's never going to be a JWT. 
So let's do something else. 

1219
01:10:40,200 --> 01:10:44,240
It makes it really easy to to 
slot this in somewhere where 

1220
01:10:45,000 --> 01:10:48,360
maybe you have Firebase as your 
authentication provider and your

1221
01:10:48,360 --> 01:10:51,400
database instead of having to 
worry about like, well, if I 

1222
01:10:51,400 --> 01:10:54,080
tear this out, like how am I 
going to access those details? 

1223
01:10:54,360 --> 01:10:56,400
Like, one, we have an 
integration with Firebase, so 

1224
01:10:56,400 --> 01:11:00,120
you can still get those. 
But two, like if you didn't want

1225
01:11:00,120 --> 01:11:02,600
to use our direct integration, 
there's still other ways that 

1226
01:11:02,600 --> 01:11:05,680
you can you can do this so. 
Very cool. 

1227
01:11:06,400 --> 01:11:10,840
Do you have components built for
this version of the SSR where 

1228
01:11:10,840 --> 01:11:15,880
like we're getting that prop in 
and it's calling like an API for

1229
01:11:15,880 --> 01:11:19,080
the rest of the data? 
So here's just stick with my 

1230
01:11:19,080 --> 01:11:22,240
brain for a minute. 
So you know how we had the 

1231
01:11:22,280 --> 01:11:28,240
signed in and the sign in and 
the signed out, all that stuff, 

1232
01:11:28,600 --> 01:11:31,440
Can we still use that in SSR now
that we know we've 

1233
01:11:31,440 --> 01:11:38,440
authenticated? 
Yeah, if you wanted to, like I 

1234
01:11:38,440 --> 01:11:42,880
said before, your only issue is,
is that like for signed in, for 

1235
01:11:42,880 --> 01:11:49,560
example, you run the risk of the
client returning an error 

1236
01:11:49,560 --> 01:11:52,400
message because it's like, I 
don't know what I'm doing, like 

1237
01:11:52,400 --> 01:11:54,240
I don't understand the state I'm
in right now. 

1238
01:11:56,280 --> 01:11:59,760
But you can still like mount 
those sign in components. 

1239
01:11:59,960 --> 01:12:01,840
OK. 
So like the sign in and the user

1240
01:12:01,840 --> 01:12:04,920
profile and the any of those 
kinds of things. 

1241
01:12:04,920 --> 01:12:07,960
So instead of redirecting to our
hosted, you could redirect 

1242
01:12:07,960 --> 01:12:12,640
directly into the application, 
make one less network call, one 

1243
01:12:12,640 --> 01:12:19,400
less piece to the puzzle, which 
is another way that we we can 

1244
01:12:19,440 --> 01:12:23,160
kind of handle SSR and and and 
doing those kinds of things. 

1245
01:12:23,240 --> 01:12:24,600
Cool. 
Yeah, that totally makes sense 

1246
01:12:24,600 --> 01:12:25,720
to me. 
Yeah. 

1247
01:12:25,960 --> 01:12:27,360
And So what? 
Go ahead. 

1248
01:12:27,520 --> 01:12:29,800
I was just going to say you got 
some more love coming your way 

1249
01:12:29,800 --> 01:12:33,360
from Hack. 
Big love all the way from Kenya.

1250
01:12:34,520 --> 01:12:37,080
Appreciate it. 
Thanks for coming pretty late in

1251
01:12:37,080 --> 01:12:37,680
Kenya. 
I would. 

1252
01:12:37,880 --> 01:12:40,160
Say, I was going to say it must 
be late in Kenya right now. 

1253
01:12:40,360 --> 01:12:41,640
Yeah. 
Appreciate you coming out. 

1254
01:12:42,080 --> 01:12:43,680
Thanks. 
For hanging on for the night. 

1255
01:12:44,400 --> 01:12:47,840
Yeah. 
And what's cool about Next JS is

1256
01:12:47,840 --> 01:12:49,440
that obviously they have the 
API, right? 

1257
01:12:49,680 --> 01:12:53,880
So you can make API calls and we
can also protect your API calls.

1258
01:12:54,840 --> 01:12:57,640
Oh, that's a great point. 
So you could do that both on 

1259
01:12:57,640 --> 01:13:00,040
their middleware as well, right?
Right right. 

1260
01:13:00,040 --> 01:13:04,120
So you have options so you can 
do it SSR you can do it on the 

1261
01:13:04,120 --> 01:13:09,480
AP is when we fix the edge 
middleware again after they 

1262
01:13:09,480 --> 01:13:10,880
broke it. 
Well, we had to do it on the 

1263
01:13:10,880 --> 01:13:15,320
edge middleware again, but it's 
10:00 PM wow, thanks to. 

1264
01:13:15,520 --> 01:13:17,360
Thanks, I think it'd be later I 
guess. 

1265
01:13:17,480 --> 01:13:19,640
Not yeah, me too. 
Actually, I'm surprised it's not

1266
01:13:19,640 --> 01:13:20,800
as late as I thought it would 
be. 

1267
01:13:21,000 --> 01:13:25,000
You are just two hours ahead of 
my sister. 

1268
01:13:25,800 --> 01:13:27,800
Oh, there you go. 
Where's your sister? 

1269
01:13:28,040 --> 01:13:32,000
In the UK, yeah, she's in the 
UK, so it's 5 + 5 over there. 

1270
01:13:32,320 --> 01:13:35,440
Nice. 
Yeah, we're sitting at 3:00 PM 

1271
01:13:35,440 --> 01:13:38,240
our time right now, so only 7-7 
hours away. 

1272
01:13:38,400 --> 01:13:39,680
Cool. 
Yeah, that's. 

1273
01:13:39,720 --> 01:13:43,360
Not bad, but yeah, so you can 
protect your API routes and you 

1274
01:13:43,360 --> 01:13:46,160
can also optionally protect your
API routes. 

1275
01:13:46,560 --> 01:13:52,760
So say you have an API that's 
like, I don't know, show a 

1276
01:13:52,760 --> 01:13:56,000
product, right? 
But maybe they're not logged in.

1277
01:13:56,240 --> 01:13:59,560
So those are your options. 
You can either be logged in or 

1278
01:13:59,560 --> 01:14:04,280
you're not logged in. 
You can essentially have that as

1279
01:14:04,280 --> 01:14:07,120
an option. 
So you can return data for when 

1280
01:14:07,120 --> 01:14:09,080
they're logged in and when 
they're not logged in as well. 

1281
01:14:09,080 --> 01:14:12,240
So you have like the optional 
sort of API calls. 

1282
01:14:12,400 --> 01:14:14,680
Yeah, that's really cool, 
especially on the edge side of 

1283
01:14:14,680 --> 01:14:16,680
it. 
I think I'm sitting down with 

1284
01:14:16,720 --> 01:14:20,160
Tim Bennex on uniform and they 
do something very similar for 

1285
01:14:20,160 --> 01:14:23,120
the personalization. 
So that's really neat. 

1286
01:14:23,200 --> 01:14:25,240
That's that's a great point. 
I wouldn't even thought of that 

1287
01:14:25,280 --> 01:14:26,840
on the the login side. 
That's cool. 

1288
01:14:27,240 --> 01:14:29,840
Yeah, so there's plenty of 
different ways to like protect 

1289
01:14:29,840 --> 01:14:33,280
all your routes or get your data
or choose how you get your data.

1290
01:14:34,800 --> 01:14:37,480
And it's really helpful for like
submitting forms is a good 

1291
01:14:37,480 --> 01:14:40,640
example, like if you submit a 
form inside your app for, I 

1292
01:14:40,720 --> 01:14:42,520
don't know, help or something 
like that. 

1293
01:14:42,960 --> 01:14:45,440
Instead of having the user be 
like, I have to type my name and

1294
01:14:45,440 --> 01:14:49,080
my e-mail and everything else, 
you can just have the user send 

1295
01:14:49,080 --> 01:14:52,000
the message, whatever it will. 
And you can use your own user 

1296
01:14:52,000 --> 01:14:56,280
identity to like provide the 
session ID, the user, everything

1297
01:14:56,280 --> 01:14:57,400
like that. 
So you can go and look in your 

1298
01:14:57,400 --> 01:15:01,120
logs and be like Oh yeah this 
happened at this time with this 

1299
01:15:01,120 --> 01:15:03,080
session ID like all that for the
user as. 

1300
01:15:03,080 --> 01:15:05,400
Well, then you can call 
additional APIs if you need to 

1301
01:15:05,400 --> 01:15:08,560
go find something else out. 
And then, you know, Riverside. 

1302
01:15:08,760 --> 01:15:10,040
That's really cool. 
Yeah. 

1303
01:15:10,640 --> 01:15:14,080
I could see where this would be 
very useful on the remix side of

1304
01:15:14,080 --> 01:15:16,960
things since they're fully SSR 
as well, hopefully. 

1305
01:15:17,840 --> 01:15:20,120
Yeah, and we have we have remix 
support. 

1306
01:15:20,120 --> 01:15:23,400
So if you're a big fan of Remix,
like we have authentication for 

1307
01:15:23,400 --> 01:15:27,440
Remix and Redwood and Gatsby and
just straight up the nil 

1308
01:15:27,440 --> 01:15:32,120
JavaScript, if you're real 
vanilla or you or there's a 

1309
01:15:32,120 --> 01:15:34,200
framework we don't support 
natively, you can use the 

1310
01:15:34,200 --> 01:15:37,320
vanilla JS to to handle it too. 
Yeah, I was thinking Angular is 

1311
01:15:37,320 --> 01:15:41,240
that a supported currently no 
that that's. 

1312
01:15:41,280 --> 01:15:44,960
Fine, you could use the. 
You could use the vanilla JS to 

1313
01:15:44,960 --> 01:15:47,880
write scripts. 
Same with view as well. 

1314
01:15:47,880 --> 01:15:51,600
Views not supported right now 
and next is another one that's 

1315
01:15:51,600 --> 01:15:54,160
not supported right now. 
Those are on our list of things 

1316
01:15:54,160 --> 01:15:58,520
to add as the additional 
support, but we're aiming to 

1317
01:15:58,520 --> 01:16:02,320
provide the ones that people use
the most, I suppose, the right 

1318
01:16:02,320 --> 01:16:04,400
answer. 
So things like React and Next 

1319
01:16:04,400 --> 01:16:08,040
JS, those things are like where 
we do the best, yeah. 

1320
01:16:08,400 --> 01:16:13,040
That makes sense. 
So yeah, well, we probably can't

1321
01:16:13,040 --> 01:16:16,000
dive too much deeper in that. 
We're coming up on time a little

1322
01:16:16,000 --> 01:16:18,840
bit here. 
And is there anything else we 

1323
01:16:18,840 --> 01:16:22,520
completely missed? 
No, I think that's really it. 

1324
01:16:23,280 --> 01:16:27,600
Any pitches for clerk like sign 
up tomorrow we're doing an event

1325
01:16:27,600 --> 01:16:31,720
or. 
Coming soon TM in October, 

1326
01:16:31,800 --> 01:16:35,400
talking about this in October we
will be running a competition. 

1327
01:16:36,280 --> 01:16:38,040
So if you're listening to this 
and it's October, there's a 

1328
01:16:38,040 --> 01:16:42,960
competition running right now 
where if you use our appearance 

1329
01:16:42,960 --> 01:16:45,920
prop that we showed off a little
bit here and make a really nice 

1330
01:16:45,920 --> 01:16:47,720
design, you could win a cash 
prize. 

1331
01:16:48,280 --> 01:16:51,600
So that's, you know, first place
I think is 500. 

1332
01:16:51,600 --> 01:16:53,960
Dollars. 
Try throw a link out somewhere, 

1333
01:16:53,960 --> 01:16:55,480
yeah? 
We will. 

1334
01:16:55,480 --> 01:16:59,000
I'll send it to you because it's
not ready yet. 

1335
01:16:59,000 --> 01:17:00,600
Like we don't have the comp up 
right now. 

1336
01:17:00,600 --> 01:17:03,040
We're working on the final 
pieces now. 

1337
01:17:03,040 --> 01:17:07,280
But yeah, I think the the cash 
prize is like a total of $1000 

1338
01:17:08,160 --> 01:17:11,440
split between three people. 
And there's also a community 

1339
01:17:11,720 --> 01:17:14,720
version. 
So we're going to put every 

1340
01:17:14,720 --> 01:17:17,720
single design that you want that
decides to be part of the 

1341
01:17:17,720 --> 01:17:20,320
community. 
Those will go on Twitter and 

1342
01:17:20,320 --> 01:17:26,440
whoever wins in the Twitter 
polls, we'll get an additional 

1343
01:17:26,440 --> 01:17:30,320
$200.00. 
So we're super excited. 

1344
01:17:30,720 --> 01:17:33,000
I love it. 
That's super fun, Yeah. 

1345
01:17:33,080 --> 01:17:36,200
So it's basically going to run 
coincide with Hacktoberfest. 

1346
01:17:36,200 --> 01:17:38,720
It's going to be cool stuff, so.
Perfect. 

1347
01:17:38,720 --> 01:17:42,320
And the app right's fully on 
board for Hacktoberfest, So you 

1348
01:17:42,320 --> 01:17:45,480
guys will see, you'll be 
inundated with information, I'll

1349
01:17:45,480 --> 01:17:47,800
just put it that way. 
But all kinds of prizes, all 

1350
01:17:47,800 --> 01:17:49,280
kinds of fun coming down the 
pipe. 

1351
01:17:49,280 --> 01:17:52,840
So it'll be super fun as well. 
Yeah, yeah, we're, we're excited

1352
01:17:52,840 --> 01:17:54,920
for Hacktoberfest. 
I'm excited. 

1353
01:17:55,280 --> 01:17:58,840
I'm always excited every year. 
You know, what's funny is the 

1354
01:17:58,840 --> 01:18:02,280
last Oktoberfest, I think they 
ran into some issues where like 

1355
01:18:02,920 --> 01:18:05,800
people were putting in issues 
and things that they shouldn't 

1356
01:18:05,800 --> 01:18:07,880
and you know. 
Yeah, They were just doing like 

1357
01:18:08,320 --> 01:18:12,040
PRS for like adding white space 
and stuff to projects. 

1358
01:18:12,040 --> 01:18:15,400
Yeah, yeah. 
And I, I heard they're, they 

1359
01:18:15,400 --> 01:18:18,560
figured out a way to like really
track that and kind of cool 

1360
01:18:18,720 --> 01:18:21,560
figure that out. 
So we're looking forward to it. 

1361
01:18:21,720 --> 01:18:24,840
I'm kind of like nervously 
excited because of the issues. 

1362
01:18:24,840 --> 01:18:25,840
That. 
Yeah, me too. 

1363
01:18:26,040 --> 01:18:27,800
Yeah, we'll. 
See how it goes so. 

1364
01:18:28,040 --> 01:18:31,520
Oh, and also one more for for 
Oktoberfest. 

1365
01:18:31,520 --> 01:18:34,040
So if you don't want to enter 
the competition, but maybe you 

1366
01:18:34,040 --> 01:18:37,400
live in a country other than an 
English speaking country, 

1367
01:18:37,760 --> 01:18:39,440
localization will be out by 
then. 

1368
01:18:39,440 --> 01:18:44,000
And we're offering, we're going 
to do a repo for translations. 

1369
01:18:44,000 --> 01:18:47,160
So if you don't want to do a 
bunch of code and all you want 

1370
01:18:47,160 --> 01:18:50,280
to do is like, hey, I just want 
to translate all this text, 

1371
01:18:51,080 --> 01:18:53,040
those will also count towards 
Oktoberfest. 

1372
01:18:53,840 --> 01:18:55,360
That's very cool. 
I love that. 

1373
01:18:56,000 --> 01:18:59,480
Yeah, well, James, as always, 
really appreciate you coming on.

1374
01:18:59,480 --> 01:19:00,760
I'm glad we could make this 
work. 

1375
01:19:00,760 --> 01:19:01,760
I know. 
Yeah, me too. 

1376
01:19:02,080 --> 01:19:06,360
Are rough in the fall so this 
works out well and we'll have to

1377
01:19:06,360 --> 01:19:09,520
do some more training app right 
get get app rights logo on that 

1378
01:19:09,520 --> 01:19:11,680
log in there. 
Yeah, absolutely. 

1379
01:19:11,680 --> 01:19:13,840
Yeah. 
Let's let's try and figure that 

1380
01:19:13,840 --> 01:19:15,000
out. 
Awesome. 

1381
01:19:15,000 --> 01:19:17,240
Well have a great day and 
everyone else out there 

1382
01:19:17,240 --> 01:19:18,800
watching. 
Thanks for watching. 

1383
01:19:18,800 --> 01:19:20,560
I hope you learn a little bit 
about clerk. 

1384
01:19:21,280 --> 01:19:22,960
We'll talk to you all later. 
Ciao, see ya.

