1
00:00:00,040 --> 00:00:04,840
A ton of cool people and it that
was before COVID so probably 

2
00:00:04,840 --> 00:00:08,039
20/19/2018 when I was there 
somewhere like that. 

3
00:00:08,039 --> 00:00:10,800
So very cool. 
Atlanta is a cool town to to 

4
00:00:10,800 --> 00:00:12,920
hang out in. 
I'll have to check that one out 

5
00:00:12,920 --> 00:00:14,520
in the future. 
I don't, I don't think I've ever

6
00:00:14,520 --> 00:00:17,920
submitted ACFP. 
So we'll, maybe I'll, I'll be 

7
00:00:17,920 --> 00:00:19,400
there next year, not too far 
away either. 

8
00:00:20,400 --> 00:00:24,880
Yeah I I know don't take this 
the wrong way but I know that 

9
00:00:24,880 --> 00:00:30,360
they are looking for a more of a
non white male crowd to speak so

10
00:00:30,360 --> 00:00:32,680
it could be challenging on that 
side but just F. 

11
00:00:33,240 --> 00:00:36,880
Yeah, well, it's so it's all a 
similar thing with Render ATL, 

12
00:00:36,880 --> 00:00:38,640
right. 
Like you mentioned, Refactor 

13
00:00:38,640 --> 00:00:41,040
being one of the most diverse, 
Render was the by far the most 

14
00:00:41,040 --> 00:00:42,160
diverse conference I've ever 
been to. 

15
00:00:42,160 --> 00:00:43,360
And it was absolutely 
incredible. 

16
00:00:44,360 --> 00:00:46,440
So that was that. 
That was really, really cool to 

17
00:00:46,440 --> 00:00:48,840
be a part of. 
And I actually LED like my talk 

18
00:00:48,920 --> 00:00:51,960
just like addressing how cool I 
thought that was and how 

19
00:00:51,960 --> 00:00:55,120
everyone here like represented 
tech and all those things so. 

20
00:00:55,120 --> 00:00:57,880
Yeah. 
Oh my gosh, yeah, yeah, I, I 

21
00:00:57,880 --> 00:01:00,640
haven't been to that one. 
I've watched it online. 

22
00:01:00,640 --> 00:01:02,840
I believe that was the last time
I saw it. 

23
00:01:02,840 --> 00:01:05,400
So I'll get conferences coming 
up too. 

24
00:01:06,000 --> 00:01:08,800
Apprent's going to Flutter 
Vikings. 

25
00:01:08,880 --> 00:01:10,440
They're big spots. 
Oh, fun. 

26
00:01:10,560 --> 00:01:12,280
That's cool. 
That used to be a really cool 

27
00:01:12,280 --> 00:01:14,440
one. 
My next one's Ng conf. 

28
00:01:14,440 --> 00:01:16,000
Do you do anything on the 
angular side? 

29
00:01:16,480 --> 00:01:20,120
I went to Ng conf like 4 
actually five years ago maybe, 

30
00:01:20,360 --> 00:01:22,200
but not anymore. 
So I was doing Angular at the 

31
00:01:22,200 --> 00:01:25,960
time with FedEx. 
The all zero team will be there.

32
00:01:25,960 --> 00:01:27,240
They're sponsoring so. 
Nice. 

33
00:01:27,680 --> 00:01:30,360
Yeah, Brandon, Brandon and I 
will be out there. 

34
00:01:30,360 --> 00:01:32,720
I don't know who else coming 
that one, but pretty exciting, 

35
00:01:32,840 --> 00:01:36,360
pretty exciting out there. 
Oh, Brittany rated, by the way. 

36
00:01:36,880 --> 00:01:40,400
Oh, she did a successful raid. 
See, I should always go after 

37
00:01:40,400 --> 00:01:43,080
Brittany every day of the week. 
I guess she's streaming these 

38
00:01:43,080 --> 00:01:46,800
days. 
Yeah, that's been like, if you 

39
00:01:46,800 --> 00:01:48,680
have the ability to make friends
with someone that has like a 

40
00:01:48,680 --> 00:01:51,360
really big audience on Twitch 
and then stream right after they

41
00:01:51,360 --> 00:01:55,600
do, it strategically helps bring
in some eyes to what you're 

42
00:01:55,600 --> 00:01:57,560
doing. 
Yeah, I would say like I don't 

43
00:01:57,560 --> 00:02:00,240
care about the numbers 
necessarily, but it's kind of 

44
00:02:00,240 --> 00:02:02,960
funny when you read the fine 
print on Twitch, it's like 

45
00:02:03,320 --> 00:02:05,760
viewers don't count that have 
been rated and I'm like, oh, 

46
00:02:05,760 --> 00:02:08,800
that's that's not cool. 
Like why would they Why would 

47
00:02:08,800 --> 00:02:11,000
they take that away? 
Like it's so weird. 

48
00:02:11,200 --> 00:02:13,200
I'm. 
Well, and what whatever I get my

49
00:02:13,200 --> 00:02:19,000
all of it like when stream 
stream labs sends me a message 

50
00:02:19,000 --> 00:02:22,160
after I think they like it 
definitely has included them in 

51
00:02:22,160 --> 00:02:25,160
the past cause the numbers that 
I've seen have not been 

52
00:02:25,480 --> 00:02:28,160
indicative of stuff without 
raids. 

53
00:02:28,320 --> 00:02:30,120
But I'll I'll give you like a 
32nd rant. 

54
00:02:30,120 --> 00:02:33,880
So you mentioned my numbers 
don't matter, which I like, I 

55
00:02:33,880 --> 00:02:37,440
think is great, but at the same 
time, like I think I want to be 

56
00:02:37,440 --> 00:02:39,840
super transparent with people 
'cause I, I think people get 

57
00:02:39,920 --> 00:02:42,200
ashamed if they feel, if they 
like worry about numbers. 

58
00:02:42,200 --> 00:02:44,600
It's like obviously it's natural
to care. 

59
00:02:44,600 --> 00:02:48,520
Like if you create something and
people don't interact, you feel 

60
00:02:48,520 --> 00:02:50,600
you question its value. 
You question like how you're 

61
00:02:50,600 --> 00:02:53,240
doing all the things more people
interact and get value out of 

62
00:02:53,240 --> 00:02:56,560
it, like beneficial for them, 
but also is is like more 

63
00:02:56,560 --> 00:02:58,680
encouragement to continue to do 
that thing because you know, 

64
00:02:58,680 --> 00:03:01,080
people are actually actually 
listening and responding. 

65
00:03:01,080 --> 00:03:04,000
So I know people are like 
self-conscious just to say they 

66
00:03:04,000 --> 00:03:07,080
care about numbers. 
Not saying that's you right now,

67
00:03:07,080 --> 00:03:09,440
but no, I I think it's a natural
thing. 

68
00:03:09,640 --> 00:03:11,400
I, I totally feel the same way 
you do. 

69
00:03:11,400 --> 00:03:15,040
And what I meant by it was that 
if it's five people, I'm still 

70
00:03:15,040 --> 00:03:17,600
going to do the same thing. 
Like I want to talk to you guys,

71
00:03:17,600 --> 00:03:19,720
I want to interact. 
If it's 1000 people, I still 

72
00:03:19,720 --> 00:03:21,680
want to interact. 
Like it's more about the 

73
00:03:21,680 --> 00:03:24,160
conversation that I care about 
and like what we're talking. 

74
00:03:24,400 --> 00:03:26,560
So yeah, I'm totally agree with 
what you're saying though. 

75
00:03:26,840 --> 00:03:30,120
Yeah. 
Well, do you wanna see this 

76
00:03:30,120 --> 00:03:33,200
hacker thing I kinda threw 
together and hopefully we can 

77
00:03:33,200 --> 00:03:36,200
keep working out. 
Let's see. 

78
00:03:36,200 --> 00:03:40,680
Here, yeah, I am super excited. 
Hopefully this view is OK. 

79
00:03:41,840 --> 00:03:44,720
Or if you're asking me, yeah, I 
can see how people in the 

80
00:03:44,720 --> 00:03:46,400
audience feel. 
Let's pop open. 

81
00:03:46,400 --> 00:03:49,000
Yeah, folks. 
Brittany, by the way, if if you 

82
00:03:49,000 --> 00:03:51,000
want to join, I'll, I'll send 
you the link. 

83
00:03:51,000 --> 00:03:53,320
I don't know what you're doing. 
I hear you have rocks. 

84
00:03:53,600 --> 00:03:57,640
Going around the pool today so. 
That's what I love about Stream 

85
00:03:57,640 --> 00:04:01,520
Yard is sending out a link like 
real time and anybody like 

86
00:04:01,680 --> 00:04:04,680
whoever you send it to can join.
That's been, that's been my 

87
00:04:04,680 --> 00:04:07,560
biggest challenge with other 
services. 

88
00:04:08,240 --> 00:04:10,400
It's been a comment to all of 
them too that I've tried. 

89
00:04:10,400 --> 00:04:14,000
I'm like, I need this ease. 
Like I don't even want to log in

90
00:04:14,120 --> 00:04:15,600
so. 
Yeah, absolutely. 

91
00:04:15,840 --> 00:04:17,839
Whatever that means. 
Right there with you. 

92
00:04:18,920 --> 00:04:22,079
How about folks, just let me 
know if you can or cannot see 

93
00:04:22,079 --> 00:04:25,640
this code very well. 
I I have a ginormous on my 

94
00:04:25,640 --> 00:04:29,720
screen to the point where it's 
rough to look at, so we'll see. 

95
00:04:30,680 --> 00:04:32,200
I can see a good on mine, for 
what it's worth. 

96
00:04:32,600 --> 00:04:36,560
Awesome. 
Cool, so the main page let's 

97
00:04:36,560 --> 00:04:40,160
talk like overall, like the the 
big thought here. 

98
00:04:40,320 --> 00:04:44,760
So the idea is on Twitter. 
I keep screwing up Twitter and 

99
00:04:44,760 --> 00:04:49,640
twitch in my head on Twitter on 
your profile page, I love to 

100
00:04:49,640 --> 00:04:52,800
like interact with anyone that's
kind of following me. 

101
00:04:53,080 --> 00:04:57,080
There's this cool banner that's 
made by black magic, so shadow 

102
00:04:57,080 --> 00:04:58,720
black magic. 
I use you now. 

103
00:04:58,720 --> 00:05:00,840
I I hope this isn't taking away 
too much from you. 

104
00:05:01,800 --> 00:05:05,880
It's just a fun idea. 
So what what they can allow you 

105
00:05:05,880 --> 00:05:09,000
to do now is put like all this 
text on and then they 

106
00:05:09,000 --> 00:05:11,840
dynamically. 
So if if people you want to use 

107
00:05:11,840 --> 00:05:16,120
this right now, any emoji that's
used to like chat with me will 

108
00:05:16,120 --> 00:05:18,640
pop up on the side over here and
reach that. 

109
00:05:18,640 --> 00:05:21,800
From like, from like any tweet. 
Like any tweet that people 

110
00:05:21,800 --> 00:05:24,480
respond to you. 
With yes, so I finally figured 

111
00:05:24,480 --> 00:05:27,280
out I can't do it because I 
tried like updating this a 

112
00:05:27,280 --> 00:05:28,880
bunch. 
But if you, if you tweet at me 

113
00:05:28,880 --> 00:05:32,520
right now and put like a rocket 
ship in there, it will show up 

114
00:05:32,520 --> 00:05:35,320
in the like the next 30 seconds 
'cause there's like a 32nd 

115
00:05:35,320 --> 00:05:39,160
refresh to update the image. 
And then anyone who follows me, 

116
00:05:39,160 --> 00:05:41,280
same thing. 
The followers were coming. 

117
00:05:41,760 --> 00:05:44,800
So great idea. 
I think it's super cool and I 

118
00:05:44,800 --> 00:05:48,080
think we can do it with Apprite 
and I've started to like 

119
00:05:48,160 --> 00:05:51,080
somewhat get there and I wanted 
to chat with James about it 

120
00:05:51,080 --> 00:05:56,880
because he's been dating. 
Yeah, because I was like, think 

121
00:05:57,360 --> 00:05:59,880
I was like, check out this 
wonderful, amazing, unique idea 

122
00:05:59,880 --> 00:06:01,080
I have. 
And Alex is like, I'm already 

123
00:06:01,080 --> 00:06:04,480
doing that. 
No, it's incredible. 

124
00:06:04,920 --> 00:06:06,680
So we can do it together. 
It'll be fun. 

125
00:06:09,200 --> 00:06:12,640
That's really funny. 
So as far as I've gotten 

126
00:06:12,960 --> 00:06:16,360
currently writing this on next 
GSI think the more I use it, I 

127
00:06:16,360 --> 00:06:19,640
don't need static as much. 
So we're probably going to push 

128
00:06:19,640 --> 00:06:22,240
this over to remix. 
It just seems like the right 

129
00:06:22,240 --> 00:06:25,200
area to be in, especially 
grabbing like all the cool air 

130
00:06:25,200 --> 00:06:27,800
boundaries and form submissions 
and all that stuff. 

131
00:06:27,800 --> 00:06:30,760
So I'll probably pivot that 
hopefully soon. 

132
00:06:30,760 --> 00:06:33,440
I was going to do it last night 
and got totally off on a a 

133
00:06:33,440 --> 00:06:37,920
different tangent for work. 
So happens basic page. 

134
00:06:37,920 --> 00:06:41,920
We'll just start here. 
So next JS you have pages in 

135
00:06:42,120 --> 00:06:46,200
that become your routes. 
I can see it good. 

136
00:06:46,360 --> 00:06:49,680
Perfect. 
Woo Hoo, awesome. 

137
00:06:49,880 --> 00:06:52,320
That was good to know. 
So if you haven't used next JS, 

138
00:06:52,320 --> 00:06:54,680
hopefully many of you have 
amazing product. 

139
00:06:54,680 --> 00:06:58,480
We're on its 12th version. 12.2 
added some really cool 

140
00:06:58,480 --> 00:07:02,440
middleware stuff, so definitely 
check that out as well, which 

141
00:07:02,440 --> 00:07:04,560
switch some things around. 
James, if you haven't checked it

142
00:07:04,560 --> 00:07:09,160
out, they went general GA with 
the 12.2 release of middleware. 

143
00:07:09,360 --> 00:07:12,880
Yeah, I'm not super on top of 
that. 

144
00:07:12,880 --> 00:07:14,800
I just watched James Perkins as 
a video. 

145
00:07:14,800 --> 00:07:16,040
I'll I'll put a link in the 
chat. 

146
00:07:16,160 --> 00:07:20,360
All these updates awesome that 
he just released this morning. 

147
00:07:20,720 --> 00:07:22,720
So I'll watch that really 
briefly, but I haven't been like

148
00:07:22,720 --> 00:07:24,440
super in tune with it, so I need
to spend. 

149
00:07:25,240 --> 00:07:27,320
Time Yeah. 
Shout out to Earnbuild teach 

150
00:07:27,320 --> 00:07:32,040
peeps. 
So this page, all all this is 

151
00:07:32,040 --> 00:07:35,200
doing right now is showing this 
welcome Devrel social. 

152
00:07:36,320 --> 00:07:38,160
It usually would if you were 
actually logged in. 

153
00:07:38,760 --> 00:07:40,120
So let's talk about that a 
minute. 

154
00:07:40,280 --> 00:07:45,040
The cool thing with Apprite, 
I've started to create this 

155
00:07:45,040 --> 00:07:50,600
hooks library for them Similar. 
So a very similar thing that 

156
00:07:51,440 --> 00:07:54,320
again we're we're trying to kind
of go feature to feature with 

157
00:07:54,320 --> 00:07:56,920
Firebase. 
Full disclosure, I'm a Firebase 

158
00:07:56,920 --> 00:07:59,280
GD love Firebase. 
Just Oh, you are. 

159
00:07:59,840 --> 00:08:01,080
Yeah, Yeah. 
Oh, cool. 

160
00:08:01,080 --> 00:08:05,040
I didn't know that. 
And when when we kind of dive 

161
00:08:05,040 --> 00:08:08,960
into this, there's an amazing 
product also written by the 

162
00:08:08,960 --> 00:08:12,840
Firebase team and they call it 
React Fire. 

163
00:08:12,920 --> 00:08:15,720
And that is their hooks package 
that they have out there. 

164
00:08:15,720 --> 00:08:19,600
So if you're ever using Firebase
and you're using it in React, 

165
00:08:19,600 --> 00:08:22,520
definitely check out. 
I'm totally going to mess this 

166
00:08:22,520 --> 00:08:23,720
up. 
So I'll just search for it. 

167
00:08:26,200 --> 00:08:27,840
It's extended. 
I always messed that part up. 

168
00:08:27,840 --> 00:08:31,360
So it's in the Firebase extended
package under React Fire. 

169
00:08:33,159 --> 00:08:37,400
My good friend Jeff, who sent me
Sparky wrong side. 

170
00:08:37,400 --> 00:08:39,760
I always messed up Sparky over 
here. 

171
00:08:39,760 --> 00:08:43,640
That's the the Firebase mascot. 
Super hard to get. 

172
00:08:43,760 --> 00:08:48,000
Thank you again Jeff so Jeff is 
kind of the main maintainer and 

173
00:08:48,000 --> 00:08:50,400
James Daniels both on the 
firebase team. 

174
00:08:50,400 --> 00:08:53,240
They created this. 
I think David East had a a big 

175
00:08:53,240 --> 00:08:57,280
part in it too but a long story 
sorry I'm like rambling on about

176
00:08:57,280 --> 00:08:59,480
this package. 
What we basically want to do. 

177
00:08:59,480 --> 00:09:03,520
I think for apparite to make it 
really a nice contender yes 

178
00:09:03,640 --> 00:09:07,680
everybody that's funny. 
I got to put that up. 

179
00:09:07,880 --> 00:09:10,600
He cracks me up so much, 
everybody. 

180
00:09:11,400 --> 00:09:12,800
I feel like I need the gift 
right now. 

181
00:09:12,800 --> 00:09:16,120
It. 
Reminds me of middle school for 

182
00:09:16,120 --> 00:09:18,960
that or something maybe. 
I was thinking high school but 

183
00:09:19,080 --> 00:09:22,560
maybe I'm old I don't know. 
Maybe, maybe we're a slightly 

184
00:09:22,560 --> 00:09:23,880
different agent, but it may have
been. 

185
00:09:23,880 --> 00:09:26,920
High school next year. 
So Oh yeah, yeah, you're a few 

186
00:09:26,920 --> 00:09:28,320
years. 
I'm 31. 

187
00:09:28,560 --> 00:09:29,960
Nice. 
So a few years difference. 

188
00:09:30,120 --> 00:09:31,840
Yeah, wait till the grade gets 
in there, James. 

189
00:09:32,200 --> 00:09:34,840
I don't people may you may not 
be able to see it on the small 

190
00:09:34,840 --> 00:09:36,640
screen, but I've got I've got a 
few. 

191
00:09:36,640 --> 00:09:38,440
My wife makes sure to remind me 
of that too. 

192
00:09:38,720 --> 00:09:43,400
That's good. 
OK, So yeah, React Hooks, React 

193
00:09:43,400 --> 00:09:47,800
Fire is the Firebase equivalent.
The cool part on the app right 

194
00:09:47,800 --> 00:09:52,520
side we don't we we have Sequel 
database underneath. 

195
00:09:52,520 --> 00:09:54,600
So there's Maria DB that's under
there. 

196
00:09:54,920 --> 00:09:57,960
We can do Mongo DB. 
There's a release coming out 

197
00:09:57,960 --> 00:10:01,880
pretty soon intent probably in 
the next week 16 will be 

198
00:10:01,880 --> 00:10:06,040
dropping with some cool features
that will end up in it long term

199
00:10:06,040 --> 00:10:08,680
goal. 
We can support any database. 

200
00:10:08,680 --> 00:10:11,600
So it's basically an abstraction
layer. 

201
00:10:12,800 --> 00:10:15,800
So I kind of got too far into 
the database side. 

202
00:10:15,800 --> 00:10:18,680
So let me let me back up a 
minute here and go back to the 

203
00:10:18,680 --> 00:10:21,360
code. 
So this hooks library is one 

204
00:10:21,360 --> 00:10:24,800
that I am creating just in this 
product project. 

205
00:10:24,800 --> 00:10:28,320
Sorry, but we're going to dive 
into it further, I think and 

206
00:10:28,320 --> 00:10:31,520
really build out a nice hooks 
library to do all of this just 

207
00:10:31,520 --> 00:10:33,840
like that. 
React fire one 'cause I I think 

208
00:10:33,840 --> 00:10:38,760
it's super necessary in doing 
this stuff for React 'cause it's

209
00:10:38,760 --> 00:10:40,440
it's difficult. 
Man. 

210
00:10:40,640 --> 00:10:44,320
React state is just no one wants
to deal with it, right. 

211
00:10:46,720 --> 00:10:51,000
So yeah, as we as we kind of 
look through this that first one

212
00:10:51,000 --> 00:10:54,080
here. 
So if folks, if you're not used 

213
00:10:54,080 --> 00:10:57,680
to hooks yet, basically what I'm
doing here is saying out of this

214
00:10:57,680 --> 00:11:02,320
hook, I want to check this user 
and this I don't know why I call

215
00:11:02,320 --> 00:11:05,080
it DRS, but Devrel social 
account. 

216
00:11:06,480 --> 00:11:08,240
So I'll have to probably clean 
up some things there. 

217
00:11:09,520 --> 00:11:13,280
When I look at user, essentially
that that is the user right 

218
00:11:13,280 --> 00:11:17,200
there that we're capturing in 
state once you get logged in in 

219
00:11:17,200 --> 00:11:21,000
order to look at set user. 
Let's go ahead and find this in 

220
00:11:21,000 --> 00:11:24,040
here. 
So there's a couple effects that

221
00:11:24,040 --> 00:11:26,240
occur. 
Basically, once our account 

222
00:11:26,240 --> 00:11:31,800
session is created, we then go 
fetch the account itself and set

223
00:11:31,800 --> 00:11:34,880
that to the user. 
So that's all like the behind 

224
00:11:34,880 --> 00:11:37,760
the scenes and why I want to get
hooks because no one wants to 

225
00:11:37,760 --> 00:11:41,880
write all that, right? 
It's the facial air. 

226
00:11:42,120 --> 00:11:44,200
I think that's why my wife likes
the facial air. 

227
00:11:44,200 --> 00:11:46,480
She gets to see the Gray in me. 
I don't know, it's weird. 

228
00:11:48,760 --> 00:11:51,680
So yeah, So what we have here 
essentially on the the hook side

229
00:11:51,680 --> 00:11:54,080
is just the ability to grab a 
user. 

230
00:11:54,080 --> 00:11:59,000
So right now I am logged out and
I'll walk you through on the app

231
00:11:59,000 --> 00:12:01,360
right side, what this looks like
as we log in. 

232
00:12:01,360 --> 00:12:04,680
So I'm gonna click log in. 
I'm gonna cross my fingers this 

233
00:12:04,680 --> 00:12:06,440
actually works 'cause I keep 
breaking it. 

234
00:12:07,600 --> 00:12:09,360
So that's all. 
That's all 0. 

235
00:12:09,680 --> 00:12:11,720
Yeah, you probably know that 
logo, right? 

236
00:12:12,760 --> 00:12:16,400
Something about it. 
OK, so let me start here. 

237
00:12:16,440 --> 00:12:20,200
Auth 0 is one of the providers 
that app rights supports. 

238
00:12:20,200 --> 00:12:22,520
So. 
Wow, this is really bright. 

239
00:12:23,880 --> 00:12:27,080
I know there's a dark mode, I 
just don't see the button. 

240
00:12:27,320 --> 00:12:29,960
There we go. 
Oh jeez, how's that? 

241
00:12:29,960 --> 00:12:31,600
Is that harder? 
Easier to see? 

242
00:12:31,800 --> 00:12:34,240
Hopefully. 
Especially when you zoom in. 

243
00:12:34,240 --> 00:12:36,000
That's perfect. 
Yeah, OK, cool 'cause it's 

244
00:12:36,000 --> 00:12:42,720
burning my eyes when it's white.
I can't keep up with Anthony's 

245
00:12:43,560 --> 00:12:48,280
the the wittiness over here. 
OK, so once I dive in so I've 

246
00:12:48,280 --> 00:12:51,000
created my apparate project out 
in our console. 

247
00:12:51,000 --> 00:12:54,200
I have Devrel social set up 2000
requests. 

248
00:12:54,200 --> 00:12:56,800
That's frightening. 
Something something's going on 

249
00:12:56,800 --> 00:13:00,520
there. 
When I when I dive in here, 

250
00:13:00,520 --> 00:13:02,520
we're probably going to 
restructure this because we feel

251
00:13:02,520 --> 00:13:06,360
like users is kind of weird when
you start to head down this. 

252
00:13:07,160 --> 00:13:10,800
So users make sense when you're 
looking at users, but this is 

253
00:13:10,840 --> 00:13:14,920
also where the authentication 
setup is too. 

254
00:13:15,120 --> 00:13:17,360
So it's a little confusing. 
We might start to call this 

255
00:13:17,360 --> 00:13:20,000
authentication instead of just 
users or something like that. 

256
00:13:21,520 --> 00:13:24,240
So right here we have auth zero 
set up. 

257
00:13:25,360 --> 00:13:28,520
If I won't even go into the auth
zero side, James, you want to 

258
00:13:28,520 --> 00:13:32,800
give it like the two-minute, 
here's a social provider or Auth

259
00:13:32,800 --> 00:13:36,120
2 provider speech. 
Sure. 

260
00:13:37,240 --> 00:13:38,520
Yeah. 
So it's going to it's going to 

261
00:13:38,520 --> 00:13:40,040
go through like the redirect 
process. 

262
00:13:40,040 --> 00:13:42,240
So from your app you're actually
going to redirect or send the 

263
00:13:42,240 --> 00:13:44,720
user over to the all zero 
domain. 

264
00:13:44,720 --> 00:13:47,240
The authentication is going to 
happen on the all zero domain. 

265
00:13:47,240 --> 00:13:49,560
All zero then is going to call 
back to your application. 

266
00:13:49,560 --> 00:13:54,120
And behind the scenes there's 
some magical token thingies to 

267
00:13:54,120 --> 00:13:57,440
be able to verify that that 
login process was successful. 

268
00:13:57,760 --> 00:14:01,560
And then you'll actually have 
have that user inside of the 

269
00:14:01,560 --> 00:14:05,200
app. 
Nice all set One thing I I need 

270
00:14:05,200 --> 00:14:08,720
to update on this one. 
I'm not getting the e-mail from 

271
00:14:08,720 --> 00:14:11,720
Twitter because they have a 
weird like you got to request it

272
00:14:11,720 --> 00:14:14,680
the right way type of thing. 
So something there's. 

273
00:14:15,160 --> 00:14:17,120
Something additional. 
Yeah, yeah. 

274
00:14:17,560 --> 00:14:21,200
I think it's scopes or something
we have to add, but anyways, so 

275
00:14:21,200 --> 00:14:23,880
I'll click on the continue with 
Twitter for now. 

276
00:14:24,200 --> 00:14:32,280
Oh good, maybe I'll continue 
with Google 'cause that didn't 

277
00:14:32,280 --> 00:14:37,520
look very good. 
So that would if it's 

278
00:14:37,520 --> 00:14:39,520
specifically, yeah. 
If it's specifically happening 

279
00:14:39,520 --> 00:14:43,400
with Twitter, then like the call
back URL registered inside of 

280
00:14:43,400 --> 00:14:46,960
Twitter is probably 
misconfigured. 

281
00:14:46,960 --> 00:14:50,120
Has it worked before? 
It has, but I've been messing 

282
00:14:50,120 --> 00:14:54,800
around with the session keys and
call backs, so maybe I should 

283
00:14:55,520 --> 00:14:58,440
fix that. 
We can probably skip for now. 

284
00:14:58,680 --> 00:15:01,720
It's OK. 
Yeah, I think we'll see. 

285
00:15:02,160 --> 00:15:05,040
I might really mess this up. 
It might be bad, but OK. 

286
00:15:05,760 --> 00:15:09,600
So now that we're in now you get
the welcome to Devrel Social, 

287
00:15:09,640 --> 00:15:12,160
which is in the next JS app over
here. 

288
00:15:13,720 --> 00:15:18,920
And then you also get this Alex 
Devrel, which I don't know why 

289
00:15:18,920 --> 00:15:23,000
it's Alex Devrel, but whatever. 
I have no idea where that's 

290
00:15:23,000 --> 00:15:26,960
coming from. 
That is in our user account that

291
00:15:26,960 --> 00:15:32,320
came back from Auth 0. 
And the next step we want to go 

292
00:15:32,320 --> 00:15:36,920
into our Twitter space here. 
So because even if we would have

293
00:15:36,920 --> 00:15:40,720
logged in with Twitter, that's 
just access to our application. 

294
00:15:40,800 --> 00:15:45,840
So this gets a little confusing.
That's where it's where you 

295
00:15:45,840 --> 00:15:50,760
separate OIDC versus. 
Of some sort like right? 

296
00:15:52,760 --> 00:15:56,320
Oh, I can't either. 
The life of the show. 

297
00:15:56,320 --> 00:16:01,200
Yes Oh yeah, I forgot to talk 
about like dropping tags and 

298
00:16:01,200 --> 00:16:05,640
stuff Anthony knows about this I
believe so for for those new to 

299
00:16:05,640 --> 00:16:09,080
the channel I I'm trying to mess
around with stream yard and 

300
00:16:09,080 --> 00:16:11,400
twitch at the same time, which 
is challenging, but. 

301
00:16:11,920 --> 00:16:14,520
And you got obs running too. 
And through OBS. 

302
00:16:14,560 --> 00:16:15,560
It's frustrating. 
Yeah, whole. 

303
00:16:15,800 --> 00:16:19,400
You got a whole thing, yeah. 
So once you're a subscriber like

304
00:16:19,400 --> 00:16:22,440
many of you who are listening 
are, you can drop things on to 

305
00:16:22,440 --> 00:16:26,640
us like this I hope works. 
We'll see. 

306
00:16:26,880 --> 00:16:30,200
Again, challenging to see these 
things as everything's going on,

307
00:16:30,200 --> 00:16:33,080
but hopefully that stuff works 
anyways. 

308
00:16:33,800 --> 00:16:36,680
OK, back to the app. 
Have I lost you yet, James? 

309
00:16:36,680 --> 00:16:37,720
I hope not. 
I'm good. 

310
00:16:37,720 --> 00:16:41,080
Also, if you check your banner 
on Twitter, you mentioned Rocket

311
00:16:41,080 --> 00:16:43,560
The rocket made it in there, so 
you're welcome. 

312
00:16:43,560 --> 00:16:44,920
Take a look. 
You're welcome. 

313
00:16:44,920 --> 00:16:45,760
Is there? 
See. 

314
00:16:45,760 --> 00:16:47,520
I didn't even refresh Twitter 
either. 

315
00:16:47,520 --> 00:16:49,640
That's the really cool part. 
Yeah, that's. 

316
00:16:50,200 --> 00:16:51,760
Yeah. 
Hi. 

317
00:16:51,800 --> 00:16:54,760
So we'll get in. 
There, we'll get into this. 

318
00:16:54,760 --> 00:16:58,080
It's kind of cool because we're 
actually using the Twitter API 

319
00:16:58,080 --> 00:17:01,880
to update our profile banner and
why it's doing that. 

320
00:17:02,120 --> 00:17:04,520
But you you didn't press refresh
on that page. 

321
00:17:04,640 --> 00:17:05,400
I didn't. 
Press it. 

322
00:17:05,640 --> 00:17:08,800
Like even if you changed it. 
Well, is Twitter then doing its 

323
00:17:08,800 --> 00:17:11,240
own polling to see if the image 
behind the scenes has changed? 

324
00:17:11,319 --> 00:17:12,680
Yeah. 
And I, I don't know if it's less

325
00:17:12,839 --> 00:17:16,119
packet of polling, but it's it's
it's impressive. 

326
00:17:16,440 --> 00:17:19,160
It's it's like, well, we can get
into it further. 

327
00:17:19,160 --> 00:17:23,760
It's pretty cool. 
OK, so while we were talking 

328
00:17:23,760 --> 00:17:27,839
about authentication, did 
authentication, we're going to 

329
00:17:27,839 --> 00:17:31,200
call this authorization at this 
close your DMS. 

330
00:17:31,320 --> 00:17:33,960
Oh no, I probably should. 
My bad. 

331
00:17:34,520 --> 00:17:36,080
Thank you. 
Where'd you show DMS? 

332
00:17:36,440 --> 00:17:39,480
My bad, my bad. 
Let me let me scooch this off 

333
00:17:39,480 --> 00:17:41,320
for a minute and close those 
down. 

334
00:17:42,120 --> 00:17:43,520
Thank you. 
Thank you, Anthony. 

335
00:17:43,520 --> 00:17:45,880
My bad. 
Yikes. 

336
00:17:48,520 --> 00:17:51,040
Hopefully there wasn't too much 
vulgar language or. 

337
00:17:51,080 --> 00:17:56,160
Secret live streaming, y'all can
see my DMS they're fine. 

338
00:17:56,720 --> 00:17:59,880
Mine are mostly fine. 
I mean, just asking Scott for 

339
00:17:59,880 --> 00:18:00,640
stuff. 
It's OK. 

340
00:18:01,800 --> 00:18:05,520
OK, so we are authenticated into
our app. 

341
00:18:05,520 --> 00:18:07,520
I don't know why I just clicked 
that again. 

342
00:18:07,520 --> 00:18:10,360
That was not good. 
Let's go back. 

343
00:18:10,840 --> 00:18:12,320
What is this thing? 
I've never seen that. 

344
00:18:12,320 --> 00:18:14,440
That was weird. 
That was. 

345
00:18:14,520 --> 00:18:15,680
Good. 
I don't know if I saw it. 

346
00:18:16,240 --> 00:18:18,560
There's like a red icon in auth 
zero. 

347
00:18:18,600 --> 00:18:19,800
I've never seen that. 
That was weird. 

348
00:18:21,320 --> 00:18:24,280
OK, so now what we're going to 
do, and this might go by a 

349
00:18:24,280 --> 00:18:26,080
little quick 'cause I'm already 
logged in. 

350
00:18:26,320 --> 00:18:30,240
Unintended. 
But when I click access, this is

351
00:18:30,240 --> 00:18:32,880
instead of the authentication. 
We're going to hit the 

352
00:18:32,880 --> 00:18:34,680
authorization endpoint in 
Twitter. 

353
00:18:37,280 --> 00:18:41,960
How is that given the access 
token? 

354
00:18:42,080 --> 00:18:43,800
So what are you? 
What are you trying to do with 

355
00:18:43,800 --> 00:18:48,080
the like with Twitter? 
So Twitter, we need to grab 

356
00:18:48,640 --> 00:18:53,120
access tokens so that we can 
write to our API for the. 

357
00:18:53,160 --> 00:18:54,560
I would be able to write to you 
OK. 

358
00:18:54,920 --> 00:19:00,080
That user themselves, that's fun
and interesting. 

359
00:19:00,200 --> 00:19:04,320
And I think we might need to 
figure out my Twitter login 

360
00:19:04,320 --> 00:19:08,200
'cause this works with Twitter. 
No problem. 

361
00:19:09,720 --> 00:19:12,520
Yeah, so let's figure this out 
real quick. 

362
00:19:12,760 --> 00:19:15,160
I would have PRAM code is not 
optional. 

363
00:19:16,880 --> 00:19:18,720
So let me open up Auth 0 real 
quick. 

364
00:19:19,000 --> 00:19:21,320
I have. 
No, so one question I have 

365
00:19:21,320 --> 00:19:25,640
doesn't doesn't app right have 
like a Twitter set up? 

366
00:19:26,960 --> 00:19:31,280
Directly we don't because they 
currently and I think this still

367
00:19:31,280 --> 00:19:36,920
holds true, they don't support 
auth or O auth 2. 

368
00:19:38,000 --> 00:19:42,960
So they they just started kind 
of supporting it via their API 

369
00:19:42,960 --> 00:19:46,040
two version, but they don't do 
it for the rest. 

370
00:19:46,040 --> 00:19:47,720
And so that's kind of 
challenging for us. 

371
00:19:47,880 --> 00:19:50,440
So that's why I kind of went 
through auth 0 for this. 

372
00:19:51,520 --> 00:19:53,120
Hopefully, hopefully that makes 
sense. 

373
00:19:53,240 --> 00:19:57,680
It's kind of weird. 
We do have APR out there for it 

374
00:19:57,680 --> 00:19:59,960
for sure. 
And that that is the comment on 

375
00:19:59,960 --> 00:20:02,520
there right now is they don't, 
they don't offer it so. 

376
00:20:04,560 --> 00:20:06,560
So I don't know that this is 
true, but I would have thought 

377
00:20:06,560 --> 00:20:09,280
to do what you're trying to do, 
you would have had to log in 

378
00:20:09,280 --> 00:20:12,760
with a with your Twitter account
and not Google first. 

379
00:20:13,280 --> 00:20:17,320
So, so the interesting part on 
let me back up. 

380
00:20:17,320 --> 00:20:19,680
And that's, that's probably 
where I'm, I'm trying not to 

381
00:20:19,680 --> 00:20:22,320
lose everybody because it's a 
little confusing when we're 

382
00:20:22,320 --> 00:20:27,440
logging in here, we're just 
logging into my application on 

383
00:20:27,440 --> 00:20:30,480
app, right? 
Which just ignore like that 

384
00:20:30,480 --> 00:20:32,880
doesn't have anything to do with
the next part. 

385
00:20:32,880 --> 00:20:34,920
If that makes sense, 'cause 
we're going to later on do 

386
00:20:34,920 --> 00:20:38,760
LinkedIn and Facebook and all of
the socials past that. 

387
00:20:39,440 --> 00:20:43,240
So this login is just getting us
in to my app. 

388
00:20:44,640 --> 00:20:48,800
And then past that, what we have
to do is grab access tokens for 

389
00:20:48,800 --> 00:20:52,800
all of the social providers. 
You no. 

390
00:20:53,040 --> 00:20:56,760
Longer see and you're sending. 
Don't you have to send something

391
00:20:56,760 --> 00:20:59,480
to Twitter that comes back from 
ausiro to then be able to get 

392
00:20:59,480 --> 00:21:05,600
the Twitter access token? 
No, because we're going directly

393
00:21:05,600 --> 00:21:08,640
to Twitter in that case to grab 
it. 

394
00:21:08,760 --> 00:21:12,560
So essentially I'm saying I can 
show you the code, let's look at

395
00:21:12,560 --> 00:21:17,040
the code, it'll make more sense.
So let's go here. 

396
00:21:18,600 --> 00:21:21,280
I've moved off the code 'cause I
was thinking we're going to look

397
00:21:21,280 --> 00:21:24,080
at environment variables, which 
that's when the secrets get 

398
00:21:24,080 --> 00:21:29,760
really exposed. 
OK, so after we go from this 

399
00:21:29,760 --> 00:21:31,880
page, we're going to go into the
Twitter page. 

400
00:21:31,880 --> 00:21:37,040
So here is the Twitter page. 
And when we are here, this is 

401
00:21:37,040 --> 00:21:40,320
kind of the key that you're 
talking about right now, this 

402
00:21:40,320 --> 00:21:43,680
redirect portion. 
So this gets a little wild. 

403
00:21:43,680 --> 00:21:46,000
So stick with me on this a 
minute. 

404
00:21:46,200 --> 00:21:49,240
It's kind of crazy. 
So the button that we're 

405
00:21:49,240 --> 00:21:55,400
clicking inside of here, sorry 
for all the errors. 

406
00:21:57,520 --> 00:21:59,880
Let me just log in this way. 
We'll figure out that Twitter 

407
00:21:59,880 --> 00:22:05,120
thing in a moment. 
So this button right here, what 

408
00:22:05,120 --> 00:22:09,000
this is going to actually do 
when I click this, it's actually

409
00:22:09,000 --> 00:22:12,680
going to go up to here to this 
redirect and we're going to hit 

410
00:22:12,680 --> 00:22:17,000
our first next JS function. 
Now I wanted to write this in 

411
00:22:17,000 --> 00:22:21,480
app write, but we currently 
don't support redirects in our 

412
00:22:21,480 --> 00:22:24,960
functions. 
So I've we had a whole 

413
00:22:24,960 --> 00:22:27,640
discussion with the engineering 
team about why we need these 

414
00:22:27,640 --> 00:22:30,880
things. 
So we'll get there, but for now,

415
00:22:30,880 --> 00:22:34,080
just trust me. 
This is this is in this is in 

416
00:22:34,080 --> 00:22:35,040
next. 
Yes, so. 

417
00:22:35,280 --> 00:22:38,920
And the JWT, is that the JWT 
that comes back from off 0? 

418
00:22:38,920 --> 00:22:42,080
Or does app write yeah do its 
own JWT? 

419
00:22:42,240 --> 00:22:44,200
Oh, this. 
Yeah, good question. 

420
00:22:44,200 --> 00:22:48,320
This is the JWT from app, right?
Yep. 

421
00:22:50,600 --> 00:22:54,920
OK. 
Yeah, and if you're sending, I 

422
00:22:55,000 --> 00:22:57,400
don't. 
Know I don't know if this is 

423
00:22:57,400 --> 00:22:59,760
fully secure. 
We can talk more about it 

424
00:22:59,760 --> 00:23:04,320
though. 
I just don't know what that JWT 

425
00:23:04,320 --> 00:23:08,760
is going to mean to Twitter. 
Yeah, it doesn't it doesn't mean

426
00:23:08,760 --> 00:23:14,640
anything, So let's keep talking.
So when I when I click this, 

427
00:23:15,080 --> 00:23:18,160
when I click this button, let me
actually show the button. 

428
00:23:18,160 --> 00:23:21,920
How about how about that please 
log in. 

429
00:23:21,920 --> 00:23:23,400
Where is it? 
Where is it? 

430
00:23:24,040 --> 00:23:27,760
Add Twitter access. 
So on that add Twitter access, 

431
00:23:27,760 --> 00:23:31,080
which is this button. 
We're going to do an on Click to

432
00:23:31,080 --> 00:23:33,280
the redirect. 
The redirect is going to say OK 

433
00:23:33,280 --> 00:23:37,040
grab window location H ref 
because we might be on our 

434
00:23:37,040 --> 00:23:40,240
global or on our domain or on 
local host. 

435
00:23:40,240 --> 00:23:45,160
Right now we're on local host 
and then add API Twitter to it. 

436
00:23:45,760 --> 00:23:47,800
Oh, that's your back end 
endpoint. 

437
00:23:47,960 --> 00:23:50,240
Exactly. 
So we're in here. 

438
00:23:50,880 --> 00:23:55,680
We're going to hit our Twitter 
endpoint right here and index. 

439
00:23:56,360 --> 00:23:58,640
So this is the first call we're 
making. 

440
00:23:59,440 --> 00:24:02,560
I jump over into a library. 
That's not a big deal, but this 

441
00:24:02,560 --> 00:24:04,040
is the actual code we go 
through. 

442
00:24:04,760 --> 00:24:09,080
So with that JWT, we're going to
actually take and check this JWT

443
00:24:09,080 --> 00:24:14,760
and make sure it it is one that 
is in in Apparate. 

444
00:24:15,160 --> 00:24:18,120
I'm not doing that very well in 
this code, so please ignore it. 

445
00:24:18,520 --> 00:24:22,480
I'm literally right now just 
checking to make sure a JWT 

446
00:24:22,480 --> 00:24:26,080
exists. 
So it's not production ready. 

447
00:24:26,080 --> 00:24:31,720
Let's just say that past that 
though, the reason that we need 

448
00:24:31,720 --> 00:24:35,600
this parsed JWT is this actually
has our user ID in it. 

449
00:24:36,400 --> 00:24:39,800
And so when we actually continue
down the path here, what we're 

450
00:24:39,800 --> 00:24:43,640
doing right now is we're 
creating an Oauth request token.

451
00:24:44,280 --> 00:24:48,280
And this, this part is the 
interesting part when we go over

452
00:24:48,280 --> 00:24:52,160
to the Twitter side. 
So when we, when we call that on

453
00:24:52,160 --> 00:24:56,400
the Twitter side, it's going to 
pass in all of, and James, you 

454
00:24:56,400 --> 00:24:58,320
probably know this better than 
anybody else. 

455
00:24:58,320 --> 00:25:02,080
So this, this token that goes 
over is kind of that request 

456
00:25:02,080 --> 00:25:04,840
side of it. 
And then on the Twitter side, 

457
00:25:04,840 --> 00:25:07,240
we're actually hitting their 
authorize endpoint and saying, 

458
00:25:07,240 --> 00:25:11,040
Hey, I need to authorize this 
user for like read and write 

459
00:25:11,040 --> 00:25:14,400
purposes for an API. 
And then when it comes back, we 

460
00:25:14,400 --> 00:25:17,240
have to do another call to get 
our access token. 

461
00:25:17,880 --> 00:25:21,400
So first we ask for it, it comes
back and then we do the access 

462
00:25:21,400 --> 00:25:25,000
token side. 
And I'll walk you through how 

463
00:25:25,000 --> 00:25:30,440
that works on on Twitter too. 
So at this point right now, 

464
00:25:30,440 --> 00:25:34,440
we've set up the call to go over
and we, we can look at that 

465
00:25:35,840 --> 00:25:38,680
through. 
I think this will work if we do 

466
00:25:38,680 --> 00:25:41,640
a network redirect. 
It's not go mobile. 

467
00:25:43,320 --> 00:25:46,400
This might be a little small. 
So let me bump this up and I 

468
00:25:46,400 --> 00:25:49,280
apologize if I'm losing anybody.
Please, please feel free 

469
00:25:49,280 --> 00:25:50,480
questions. 
What's Anthony? 

470
00:25:50,480 --> 00:25:53,040
Is there a link to to that list 
somewhere? 

471
00:25:54,840 --> 00:26:00,880
Oh, providers that. 
Oh yeah, there was a link to it 

472
00:26:00,880 --> 00:26:03,360
I. 
Think it was in just like the. 

473
00:26:03,840 --> 00:26:07,600
Yeah, it's in the console page. 
I don't know if there's like a 

474
00:26:07,600 --> 00:26:17,480
list out here, Guides, guides, 
guides, I don't know. 

475
00:26:17,720 --> 00:26:21,320
I don't know that for an answer.
I apologize in that one, but you

476
00:26:21,320 --> 00:26:24,080
definitely if you have the 
console up and going you can you

477
00:26:24,080 --> 00:26:26,880
can see them all and I can get 
you a list. 

478
00:26:27,120 --> 00:26:32,560
I'll throw one out there later. 
Oh, Brandon's got it sweet. 

479
00:26:33,240 --> 00:26:37,400
We should have just had Brandon 
on with us 40 O auth 2 

480
00:26:37,400 --> 00:26:38,880
providers. 
Let's see what else Brandon 

481
00:26:38,880 --> 00:26:40,200
said. 
I'm sorry, I'm really behind on 

482
00:26:40,200 --> 00:26:46,000
chat. 
Will the code be available at 

483
00:26:46,000 --> 00:26:48,200
the end? 
This is an open source project 

484
00:26:48,200 --> 00:26:50,360
that I'm going to continue 
running. 

485
00:26:50,360 --> 00:26:54,560
So we're we're just showing off 
Devral Social, which will be a 

486
00:26:54,640 --> 00:26:58,080
thing one day. 
And the code's all out there 

487
00:26:58,080 --> 00:27:01,480
folks, if you want to hang out 
and check it out, it's not the 

488
00:27:01,480 --> 00:27:04,880
best. 
So yeah, that's true. 

489
00:27:04,880 --> 00:27:09,000
It isn't too late. 
Let's do it right now, and then 

490
00:27:09,000 --> 00:27:12,720
if you're not busy, I'm about to
send you the streamer, I think. 

491
00:27:15,800 --> 00:27:17,360
Again, the benefits of stream 
yarn. 

492
00:27:17,680 --> 00:27:19,480
I know, it's fantastic, isn't 
it? 

493
00:27:21,720 --> 00:27:24,800
I've already warned James of 
this, and I have a feeling we're

494
00:27:24,840 --> 00:27:27,960
gonna go long already. 
So we'll have to call it quits 

495
00:27:27,960 --> 00:27:31,040
eventually. 
But my Internet providers 

496
00:27:31,040 --> 00:27:33,960
swapping out our fiber, So at 
some point I'm gonna have to 

497
00:27:33,960 --> 00:27:35,800
stop 'cause I won't have 
Internet. 

498
00:27:35,800 --> 00:27:36,960
But. 
They will tear it out. 

499
00:27:37,280 --> 00:27:40,400
Yeah, which I still don't 
understand 'cause I'm going from

500
00:27:40,400 --> 00:27:43,240
business back to residential and
I'm like, it's still fiber, just

501
00:27:43,240 --> 00:27:46,160
switch it. 
Oh, that was that's a nightmare.

502
00:27:46,160 --> 00:27:51,800
Anyways, OK, so this could get 
weird 'cause I don't know why 

503
00:27:51,800 --> 00:27:53,720
it's failing right now, but 
we'll take a look. 

504
00:27:54,320 --> 00:27:56,560
So I'm going to click add 
Twitter access. 

505
00:27:56,560 --> 00:27:58,840
It's going to do that whole 
redirect thing. 

506
00:27:58,840 --> 00:28:04,000
You ready? 
I got preserve log on. 

507
00:28:04,080 --> 00:28:11,280
OK, so we pretty much 
immediately you know what this 

508
00:28:11,280 --> 00:28:15,440
is coming from mine. 
I didn't realize that. 

509
00:28:15,440 --> 00:28:20,840
So API Twitter is errors could 
not authenticate you. 

510
00:28:21,760 --> 00:28:25,240
I'm guessing this is probably 
some bad code I have out here. 

511
00:28:26,000 --> 00:28:28,480
Where where in there do you 
return a 401? 

512
00:28:29,760 --> 00:28:32,000
That's a great question, I don't
even remember. 

513
00:28:32,320 --> 00:28:37,280
I wonder if this is coming out 
of the O auth directly 'cause 

514
00:28:37,280 --> 00:28:41,480
this is a package that I'm using
the old old Oauth package. 

515
00:28:43,200 --> 00:28:47,040
Just again because Twitter 
Twitter is Oauth and that Oauth 

516
00:28:47,040 --> 00:28:56,000
too and all that fun stuff. 
I am surprised status code 4 O 

517
00:28:56,000 --> 00:28:59,400
one data errors message could 
not authenticate. 

518
00:28:59,480 --> 00:29:03,680
That is very interesting that we
are getting that so soon. 

519
00:29:07,520 --> 00:29:18,440
Redirect. 
This is where I expect us to be 

520
00:29:18,640 --> 00:29:21,760
to be headed. 
By the way, I might have to put 

521
00:29:21,760 --> 00:29:24,840
some console logs in because 
I've had a hard time actually 

522
00:29:24,840 --> 00:29:28,280
hitting break points in next GS 
unless others know. 

523
00:29:28,560 --> 00:29:30,960
Yeah, I've never done that. 
It's really rough. 

524
00:29:31,880 --> 00:29:36,120
Like you're not doing, you're 
not doing any validation on the 

525
00:29:36,120 --> 00:29:39,640
JWT right there with, not 
really. 

526
00:29:39,680 --> 00:29:43,480
Like this is just intended to 
get the user and pass that 

527
00:29:43,480 --> 00:29:47,000
along. 
So this parsed JWT ends up 

528
00:29:47,000 --> 00:29:49,720
further down here. 
I think this is actually failing

529
00:29:49,720 --> 00:29:52,400
in here. 
So here we can actually we'll do

530
00:29:52,400 --> 00:29:59,800
this console dot log parsed as 
folks. 15 years later I'm still 

531
00:29:59,800 --> 00:30:02,400
console logging thing. 
I think we all are. 

532
00:30:04,560 --> 00:30:06,160
So let's click that button 
again. 

533
00:30:13,520 --> 00:30:16,080
No, that failed further up, 
apparently. 

534
00:30:16,880 --> 00:30:20,400
Well, that's mighty interesting.
It failed before it got there. 

535
00:30:20,560 --> 00:30:23,640
Yeah. 
Am I in the right? 

536
00:30:24,400 --> 00:30:28,960
That's the call back. 
This is the initial here. 

537
00:30:28,960 --> 00:30:31,120
I'm just going to put like 
console dot log. 

538
00:30:34,200 --> 00:30:37,160
Hello, James. 
Sure. 

539
00:30:37,160 --> 00:30:43,720
It actually hit something. 
Oh, that's funny. 

540
00:30:45,400 --> 00:30:46,600
Oh, that's the initial. 
OK. 

541
00:30:52,510 --> 00:30:54,310
Did it log out the James part? 
Yeah. 

542
00:30:54,310 --> 00:30:56,350
Oh, here's the user Idi totally 
missed it before. 

543
00:30:56,390 --> 00:31:03,630
OK. 
Oh, so that's the parsed databt 

544
00:31:03,670 --> 00:31:08,040
that you have there, Yeah. 
So that's your user I or not 

545
00:31:08,040 --> 00:31:10,480
yours. 
My user ID for my Google account

546
00:31:10,480 --> 00:31:16,520
in apprite. 
Oh, it is making it down to the 

547
00:31:16,520 --> 00:31:20,160
GET Oauth request token. 
Yeah, So it's right here where 

548
00:31:20,160 --> 00:31:24,200
it's failing. 
Why? 

549
00:31:24,200 --> 00:31:24,920
Why? 
Why? 

550
00:31:25,520 --> 00:31:26,960
Where? 
Where is that coming from? 

551
00:31:26,960 --> 00:31:28,600
That's the Oauth package that 
you. 

552
00:31:28,920 --> 00:31:33,600
Yeah, that's the Oauth package. 
I'm wondering if this this is 

553
00:31:33,600 --> 00:31:36,520
always like demo right? 
Like I had all this working last

554
00:31:36,520 --> 00:31:40,240
night and now nothing works. 
I feel like a key change 

555
00:31:40,240 --> 00:31:46,320
somewhere here I think. 
Maybe you want to show us your 

556
00:31:46,320 --> 00:31:48,280
environment variable with all 
your secret credentials. 

557
00:31:48,440 --> 00:31:53,400
I was, I was gonna for a minute,
just go back to this view for a 

558
00:31:53,400 --> 00:31:58,320
second and just double check. 
I want to make sure. 

559
00:32:02,680 --> 00:32:06,440
So you create the new OAH thing 
with those configurations. 

560
00:32:08,360 --> 00:32:17,680
I have 0 secrets, Facebook stuff
for the other side of it, user 

561
00:32:18,080 --> 00:32:30,800
secrets. 
Yeah, I'm a little confused as 

562
00:32:30,840 --> 00:32:36,440
to how this package works. 
So it should be my Twitter API 

563
00:32:36,440 --> 00:32:42,200
key and Twitter API secret. 
Let me just double check API key

564
00:32:42,200 --> 00:32:45,160
API secret. 
Let me you know what. 

565
00:32:45,640 --> 00:32:49,520
I'll, I'll just regenerate them.
This is this is good for people 

566
00:32:49,840 --> 00:32:51,400
to to see. 
OK. 

567
00:32:51,800 --> 00:32:55,240
Noted. 
Yes, write these down, folks. 

568
00:32:56,960 --> 00:33:01,880
So what we're doing here on that
Oauth package right here, 

569
00:33:03,280 --> 00:33:07,520
basically this Oauth, what we're
saying is we need to go to the 

570
00:33:07,520 --> 00:33:11,280
API Twitter.com for their Oauth 
request and then the access 

571
00:33:11,280 --> 00:33:14,680
token after that. 
What we need to feed into it is 

572
00:33:14,680 --> 00:33:17,320
Twitter API key and Twitter API 
secret. 

573
00:33:17,640 --> 00:33:20,440
This is the API key and the API 
secret currently. 

574
00:33:21,040 --> 00:33:26,000
Let's stroll on out to developer
Twitter. 

575
00:33:27,040 --> 00:33:28,880
I don't. 
Can you see your previous one or

576
00:33:28,880 --> 00:33:31,640
do you have to regenerate them? 
I don't think you can see it. 

577
00:33:31,640 --> 00:33:35,640
I'm just going to regenerate and
then later forget and do this 

578
00:33:35,640 --> 00:33:42,000
all over once again. 
OK, so we've got the which one 

579
00:33:42,000 --> 00:33:44,680
Coding cat Twitter banner. 
We started out calling it that. 

580
00:33:44,680 --> 00:33:46,400
We'll have to switch that name 
eventually. 

581
00:33:48,440 --> 00:33:59,920
Devrel Social, I lose you. 
That was weird. 

582
00:34:01,560 --> 00:34:04,240
Can you hear me still, James? 
Yeah, I can now watch for a 

583
00:34:04,240 --> 00:34:05,360
second. 
I think, my bad. 

584
00:34:06,400 --> 00:34:12,159
Under settings I think at the 
top, like in the middle of the 

585
00:34:12,159 --> 00:34:13,560
page at the top if you scroll 
up. 

586
00:34:14,520 --> 00:34:19,280
Oh, thank you. 
Or maybe not everyone. 

587
00:34:19,360 --> 00:34:23,040
I think you click on the app 
first and select it right And 

588
00:34:23,040 --> 00:34:25,239
like manage app? 
Nope. 

589
00:34:26,600 --> 00:34:29,000
You may, I think you can click 
the app on the sidebar on the 

590
00:34:29,000 --> 00:34:32,800
left. 
Are those the apps listed under 

591
00:34:32,800 --> 00:34:34,800
the project up there? 
Like the Deverell Social is the 

592
00:34:34,800 --> 00:34:37,440
project and then you've got apps
underneath. 

593
00:34:37,760 --> 00:34:41,639
Yeah, I'm used to seeing. 
I wonder if I'm logged in. 

594
00:34:44,760 --> 00:34:48,440
No, I'm the right person. 
Owned by CAD Dev Sounds. 

595
00:34:48,520 --> 00:34:53,280
Like a meta question. 
I swear there's usually like a 

596
00:34:53,280 --> 00:34:55,239
little settings button right 
there. 

597
00:34:55,719 --> 00:35:04,560
What the hell am I missing? 
There's usually like an Oauth 

598
00:35:05,560 --> 00:35:10,560
thing app right? 
JWGS only last 15 minutes also. 

599
00:35:10,680 --> 00:35:13,520
Oh well that's good to know. 
That's probably part of what's 

600
00:35:13,520 --> 00:35:19,120
screwing me up. 
So do they have like refresh 

601
00:35:19,120 --> 00:35:22,200
tokens and Brandon in place? 
Yeah. 

602
00:35:22,520 --> 00:35:28,680
We do have, we do have refresh. 
No, I don't want to log out that

603
00:35:28,680 --> 00:35:37,760
that is the right account. 
Where is all OASA? 

604
00:35:44,080 --> 00:35:51,280
This is just silly now. 
Oh, I just saw it. 

605
00:35:51,600 --> 00:35:54,760
Here we go. 
That's that's one of them. 

606
00:35:54,760 --> 00:35:56,600
But that's not it. 
That's what it usually looks 

607
00:35:56,600 --> 00:35:59,760
like. 
And that's how I don't I don't 

608
00:35:59,760 --> 00:36:01,720
know the difference. 
Like at one point they started 

609
00:36:01,720 --> 00:36:04,480
requiring projects and apps 
nested underneath them or 

610
00:36:04,480 --> 00:36:06,200
something, I can't remember. 
It's weird. 

611
00:36:06,200 --> 00:36:10,720
Let me log into the coding 
account and make sure that's not

612
00:36:10,720 --> 00:36:14,880
the problem. 
Sure enough, was the problem. 

613
00:36:14,920 --> 00:36:24,120
OK, I guess. 
I no, it's still not right. 

614
00:36:25,800 --> 00:36:28,760
It's this one which is owned by 
coder Caddev. 

615
00:36:29,520 --> 00:36:32,240
It should look like this James. 
This is what it usually has on 

616
00:36:32,240 --> 00:36:33,080
it. 
Yeah. 

617
00:36:34,240 --> 00:36:35,640
That's bizarre. 
Like. 

618
00:36:36,760 --> 00:36:39,000
It's tagged as staging, I don't 
know what. 

619
00:36:39,360 --> 00:36:43,000
Yeah, it's it's always been that
way just because it doesn't take

620
00:36:43,000 --> 00:36:47,840
up another app, but let me 
switch back to Codercat, refresh

621
00:36:47,840 --> 00:36:52,240
the screen. 
That is so weird. 

622
00:36:53,000 --> 00:36:55,640
I don't, I don't get that. 
Did something literally change 

623
00:36:55,640 --> 00:36:58,480
last night on Twitter and it's 
like throwing? 

624
00:36:58,480 --> 00:37:00,880
If you click manage, it just 
allows you to delete the app. 

625
00:37:01,800 --> 00:37:04,560
Yeah, I I could, I guess, start 
all over with it. 

626
00:37:05,600 --> 00:37:07,240
Seems. 
I don't really want to. 

627
00:37:10,520 --> 00:37:12,600
I don't know. 
I don't know either if. 

628
00:37:12,600 --> 00:37:15,600
You go to dev environments, 
maybe Scroll down a little bit. 

629
00:37:16,960 --> 00:37:19,040
On the on the. 
Left side on the sidebar. 

630
00:37:19,640 --> 00:37:25,320
This one. 
Yeah, I don't even know anything

631
00:37:25,320 --> 00:37:26,680
about environments. 
I've never. 

632
00:37:26,720 --> 00:37:34,040
Changed so much. 
Like it's not a good look for 

633
00:37:34,040 --> 00:37:37,080
them either if like it's this 
hard to find what you're looking

634
00:37:37,120 --> 00:37:40,120
for. 
I'm just like thinking like 

635
00:37:40,120 --> 00:37:42,720
access was messed up when I can 
see this app. 

636
00:37:43,160 --> 00:37:48,240
You know what, I this was super 
hard to set up the first time, 

637
00:37:48,240 --> 00:37:53,840
but maybe we should just try it 
I guess. 

638
00:37:59,700 --> 00:38:02,900
Yeah, see this was the hard part
to make sure it was right. 

639
00:38:03,700 --> 00:38:08,440
Boy, this is super frustrating. 
I am Coder Cat. 

640
00:38:15,280 --> 00:38:19,280
Let's try this. 
I guess we could set the 

641
00:38:19,280 --> 00:38:21,720
production one and see how this 
goes completely out of order. 

642
00:38:26,360 --> 00:38:31,440
Let's just do it this way. 
James Devrel the way I'll 

643
00:38:31,440 --> 00:38:34,200
remember. 
Have your own Devrel now. 

644
00:38:35,880 --> 00:38:38,600
I am Deborah. 
OK, so this is this is the 

645
00:38:38,600 --> 00:38:41,120
interesting part. 
When you set this up this way, 

646
00:38:42,600 --> 00:38:46,000
this API key and everything you 
would think would be the correct

647
00:38:46,000 --> 00:38:47,840
one. 
And maybe it is maybe I just 

648
00:38:47,840 --> 00:38:51,720
messed this up every time, but 
this is not the Oauth settings, 

649
00:38:52,080 --> 00:38:57,720
which is interesting. 
So let me go over here, see this

650
00:38:57,720 --> 00:39:01,040
right here, Oauth two and one O 
are authentication methods 

651
00:39:01,400 --> 00:39:04,360
that's not actually set up yet. 
So then you have to go through 

652
00:39:04,360 --> 00:39:09,440
this and at least this, but most
likely we'll need both of these.

653
00:39:11,480 --> 00:39:13,080
I think we were rolling that 
way. 

654
00:39:15,680 --> 00:39:20,240
Eventually we'll need this. 
This is this is the fun part for

655
00:39:20,240 --> 00:39:23,720
the call back URS and I feel 
like this is what changed. 

656
00:39:25,040 --> 00:39:31,720
So we'll need a local host 3000.
No, no, no, no, no. 

657
00:39:33,000 --> 00:39:36,320
And there's see this is this is 
the interesting part because the

658
00:39:36,320 --> 00:39:42,400
authentication mechanism was for
our app right login, but the 

659
00:39:42,400 --> 00:39:46,640
authorization endpoints are not.
And that's that's the tricky 

660
00:39:46,640 --> 00:39:49,280
part on all of this. 
So because we're in the 

661
00:39:49,280 --> 00:39:53,240
authentication ones, this is the
auth to 0 portion of this. 

662
00:39:53,440 --> 00:39:58,160
Does that make sense? 
I understand what you're 

663
00:39:58,160 --> 00:40:02,880
distinguishing. 
I'm not sure if I know. 

664
00:40:05,040 --> 00:40:08,080
The the fun part is how long it 
took to figure all this. 

665
00:40:08,200 --> 00:40:09,720
Out, Yeah. 
So you're saying that should be 

666
00:40:09,720 --> 00:40:13,040
the austere URL? 
I believe so and I wish I could 

667
00:40:13,040 --> 00:40:16,880
show you the old you know what? 
I'm just going to do this again.

668
00:40:16,880 --> 00:40:21,440
Let's let's delete this. 
It's fun watching people fumble 

669
00:40:21,440 --> 00:40:29,800
around. 
Sorry, folks, just it's really 

670
00:40:29,800 --> 00:40:35,120
worrying me that like when I go 
and I can't log in, that tells 

671
00:40:35,120 --> 00:40:37,560
me like, something changed on 
Twitter's side, right? 

672
00:40:43,560 --> 00:40:45,880
Yeah, the fact. 
So let's look at like a normal 

673
00:40:45,880 --> 00:40:49,840
one, I guess. 
Too many counts, too little 

674
00:40:49,840 --> 00:40:56,600
time. 
So here's what this one looks 

675
00:40:56,600 --> 00:41:01,880
like, and then here is the 
authentication setup. 

676
00:41:02,080 --> 00:41:06,480
So I don't get it. 
Look at all these old apps. 

677
00:41:06,880 --> 00:41:09,120
This is ridiculous. 
Oh nice. 

678
00:41:09,520 --> 00:41:13,640
Wow. 
There's the coding CAD one, so 

679
00:41:13,640 --> 00:41:17,840
coding CAD set up to use this 
through Firebase login. 

680
00:41:19,360 --> 00:41:24,840
So it works the same way. 
I don't know, maybe you're maybe

681
00:41:24,840 --> 00:41:30,040
you're right, James on like 
maybe this was killed somehow 

682
00:41:32,320 --> 00:41:34,880
because of being in staging so 
long or something. 

683
00:41:34,880 --> 00:41:36,040
I. 
Don't know. 

684
00:41:36,040 --> 00:41:40,640
I also haven't and I've never 
done the get an access token 

685
00:41:40,640 --> 00:41:42,920
back from Twitter before. 
I've never done that piece. 

686
00:41:44,280 --> 00:41:46,360
Yep, that's so. 
That's straight through their 

687
00:41:46,360 --> 00:41:47,880
API. 
We could talk about it, I guess,

688
00:41:47,880 --> 00:41:51,600
since I've been fumbling around 
for probably 20 minutes and not 

689
00:41:51,600 --> 00:41:54,480
getting it anywhere. 
Or we can try to just create a 

690
00:41:54,480 --> 00:41:56,200
new app and go from there. 
What do you think? 

691
00:41:57,280 --> 00:41:59,240
I feel like people might get 
more out of it if we create a 

692
00:41:59,240 --> 00:42:01,280
new app. 
Yeah, I say go for it. 

693
00:42:01,760 --> 00:42:04,320
Yeah, I'm not. 
This is just part of the Twitter

694
00:42:04,320 --> 00:42:06,600
dashboard that I haven't. 
Done before. 

695
00:42:06,640 --> 00:42:12,320
Yeah, it's all good. 
I don't like that this is down 

696
00:42:12,320 --> 00:42:14,640
here. 
I don't want to break my 

697
00:42:14,720 --> 00:42:17,280
production app. 
So I think I'll just leave all 

698
00:42:17,280 --> 00:42:19,360
of this alone and we'll call 
this something new. 

699
00:42:20,520 --> 00:42:25,240
So let's go here and do a new 
project. 

700
00:42:25,240 --> 00:42:27,720
That's that same. 
I feel like the Twitter 

701
00:42:27,720 --> 00:42:31,160
dashboard has always like never 
been intuitive. 

702
00:42:31,320 --> 00:42:33,800
It's not an. 
Idea The idea of projects and 

703
00:42:33,800 --> 00:42:38,160
apps in theory makes sense, but 
from a layout perspective never 

704
00:42:38,160 --> 00:42:40,960
made sense that I couldn't 
figure out how to create like 

705
00:42:40,960 --> 00:42:43,720
one or the other and it like are
you looking for how to create a 

706
00:42:43,720 --> 00:42:45,240
new project in Twitter? 
Yes. 

707
00:42:45,440 --> 00:42:48,280
Yeah, and that I don't 
understand how that's not a very

708
00:42:48,280 --> 00:42:50,520
obvious thing. 
Yeah, it should be like here. 

709
00:42:52,080 --> 00:42:54,960
Maybe you can only have one as a
free account, I'm not sure. 

710
00:42:55,480 --> 00:42:56,520
No. 
Is that true? 

711
00:42:56,520 --> 00:42:58,120
Maybe. 
I I have no idea. 

712
00:42:58,360 --> 00:43:00,720
That's a complete guess. 
I don't know why I would have 

713
00:43:00,720 --> 00:43:05,920
named it Deverell Social either.
3 environments per project. 

714
00:43:05,920 --> 00:43:10,240
About projects. 
I'm missing all these chats. 

715
00:43:10,240 --> 00:43:12,120
What's going on? 
Twitter redirect should be in 

716
00:43:12,120 --> 00:43:15,200
the app URL. 
Yeah, yeah, we have all the 

717
00:43:15,200 --> 00:43:19,920
Twitter stuff, correct? 
So what Brandon's talking about,

718
00:43:19,920 --> 00:43:21,680
Let's just review this with 
people. 

719
00:43:22,840 --> 00:43:26,520
So what's happening on our 
redirects and stuff like that in

720
00:43:26,520 --> 00:43:31,320
Auth Zero, what we have set up, 
this is our Auth 0O auth 2 

721
00:43:31,320 --> 00:43:34,240
settings. 
And if we jump over to Auth 

722
00:43:34,320 --> 00:43:38,360
Zero, we go to this is a little 
goofy and an Auth 02. 

723
00:43:38,360 --> 00:43:42,240
I was a little surprised. 
So there's actually applications

724
00:43:42,280 --> 00:43:48,280
and we have our, if it loads our
Devrel social application, that 

725
00:43:48,280 --> 00:43:50,960
application actually needs a 
social login though. 

726
00:43:51,920 --> 00:43:57,560
So in authentication you go to 
social and this this is where we

727
00:43:57,560 --> 00:44:00,720
enabled those. 
So in Twitter we have our one 

728
00:44:00,720 --> 00:44:05,560
application enabled. 
I don't think if I do this from 

729
00:44:05,560 --> 00:44:10,560
here, this works. 
Yeah, I don't know why, but that

730
00:44:10,560 --> 00:44:13,320
never worked, which was 
interesting. 

731
00:44:13,600 --> 00:44:17,880
I'm not sure either. 
So then you assign this because 

732
00:44:17,880 --> 00:44:21,600
it has let me go through this? 
I guess so this is our Twitter 

733
00:44:21,600 --> 00:44:25,760
consumer API and secret, which 
could be part of the problem. 

734
00:44:26,360 --> 00:44:29,480
Just the fact I can't see him on
Twitter is a little frustrating.

735
00:44:29,520 --> 00:44:33,680
So I don't know. 
So that's where this connection 

736
00:44:33,680 --> 00:44:38,760
is to app, right? 
So if I back up just one more 

737
00:44:38,760 --> 00:44:46,360
step to applications. 
So this is our application, that

738
00:44:46,880 --> 00:44:52,080
app, that app right to me Ace 
that Appright is connecting to. 

739
00:44:52,080 --> 00:44:58,240
So Appright says, OK, I am using
coding CAD dev.us.auth0.com that

740
00:44:58,240 --> 00:45:02,440
is this application right here. 
When we hit that first screen 

741
00:45:02,440 --> 00:45:05,000
and it says do you want to log 
in with Twitter or Google? 

742
00:45:05,000 --> 00:45:09,640
That's auth 0 saying I want to 
give you these social providers 

743
00:45:09,640 --> 00:45:13,760
to log in through Auth 0 then 
calls out to those. 

744
00:45:14,000 --> 00:45:17,400
When it comes back it says Yep, 
you're good and passes that back

745
00:45:17,400 --> 00:45:20,840
to Appright. 
I can't remember whether they 

746
00:45:20,840 --> 00:45:23,760
call that not 3 legged, but 
there's. 

747
00:45:23,760 --> 00:45:26,560
There is 3 legged off. 
Yeah, which we, that's what 

748
00:45:26,560 --> 00:45:28,680
we're doing with the the access 
token inside. 

749
00:45:28,680 --> 00:45:32,680
But this is called third party, 
but it's not social. 

750
00:45:32,680 --> 00:45:34,920
I can't remember what Auth 0 is 
considered in this case. 

751
00:45:36,080 --> 00:45:39,600
It's wait, 'cause there's like 
there's a chain of stuff here 

752
00:45:39,600 --> 00:45:44,680
like from application. 
So when you when you configure 

753
00:45:44,680 --> 00:45:49,120
all 0MM, Hmm, what's the what's 
the callback URL that you have 

754
00:45:49,120 --> 00:45:52,480
in there? 
Is that back to your application

755
00:45:52,480 --> 00:45:55,800
or back to? 
Yeah, so this goes to auth 0. 

756
00:45:59,960 --> 00:46:03,080
That that's going back to your. 
I'm sorry, it's too. 

757
00:46:03,120 --> 00:46:06,040
That's one too many. 
Yeah, yeah, yeah. 

758
00:46:06,040 --> 00:46:09,840
So in auth zero are redirect. 
And again, this is for that, 

759
00:46:09,920 --> 00:46:14,200
that top level button. 
Again, this is stuff I was 

760
00:46:14,200 --> 00:46:16,720
playing around with last night, 
which might be causing part of a

761
00:46:16,720 --> 00:46:19,200
problem. 
So let me take this out for a 

762
00:46:19,200 --> 00:46:22,480
second. 
Just see, that was the one 

763
00:46:22,480 --> 00:46:25,080
change I made last night. 
It shouldn't that. 

764
00:46:26,080 --> 00:46:28,560
That's. 
Just allowed or a list of 

765
00:46:28,560 --> 00:46:31,200
allowed redirect URL. 
So as long as you didn't tell it

766
00:46:31,200 --> 00:46:32,560
to redirect. 
Right. 

767
00:46:32,760 --> 00:46:37,120
So it should be good there. 
And then F or the 4B here should

768
00:46:37,120 --> 00:46:39,160
match over here. 
SO4B. 

769
00:46:39,880 --> 00:46:42,840
And this is working because it's
working with our Google login. 

770
00:46:42,960 --> 00:46:44,880
There's just something up with 
our Twitter login. 

771
00:46:45,480 --> 00:46:48,920
So if I go over to our social 
connectors, that's where the 

772
00:46:48,920 --> 00:46:53,000
breakdown probably is in 
Twitter. 

773
00:46:53,760 --> 00:46:57,840
So if I go into our Twitter 
social, now we have to tell 

774
00:46:57,840 --> 00:47:03,040
Twitter which consumer API 
secret and consumer API key 

775
00:47:03,040 --> 00:47:06,200
we're actually using. 
And that's where this comes into

776
00:47:06,200 --> 00:47:10,560
play. 
So you're going to register a 

777
00:47:10,560 --> 00:47:11,880
new app? 
Is that or? 

778
00:47:12,120 --> 00:47:15,040
If I can I guess, but the only 
one it allows me to do is 

779
00:47:15,040 --> 00:47:17,320
production. 
Now that's the weird part. 

780
00:47:18,120 --> 00:47:20,800
I yeah, I've never even dealt 
with staging and I didn't know 

781
00:47:20,800 --> 00:47:22,080
that was the thing. 
Oh, really? 

782
00:47:22,320 --> 00:47:25,720
Yeah, I've never done that. 
I'm kind of more apt to just 

783
00:47:25,720 --> 00:47:30,920
kill this, kill it, boom, kill, 
kill, kill. 

784
00:47:30,920 --> 00:47:32,520
Oh, it's a lot of keys we're 
going to have to do. 

785
00:47:32,920 --> 00:47:37,640
All right, here we go. 
I need to set up my like twitch 

786
00:47:37,640 --> 00:47:40,920
chat bot thing for like I don't 
have my lights set up either, 

787
00:47:40,920 --> 00:47:45,000
but for like people to change my
VS Code theme and other random 

788
00:47:45,000 --> 00:47:47,000
things that I haven't. 
One of the things I have to 

789
00:47:47,000 --> 00:47:49,080
figure out is where those 
environment variables are that I

790
00:47:49,080 --> 00:47:52,640
set up a long time ago. 
I think I've got little trick is

791
00:47:52,640 --> 00:47:55,880
I I keep like notes and LastPass
so I'll throw environment 

792
00:47:55,880 --> 00:47:58,840
variables like I'll just copy my
dining V files in there and then

793
00:47:58,920 --> 00:47:59,880
bring them down when I need 
them. 

794
00:48:00,320 --> 00:48:05,440
That's the same thing I do too. 
Yeah, we'll just, we'll expose 

795
00:48:05,440 --> 00:48:09,160
everything here. 
So this is a brand new app with 

796
00:48:09,160 --> 00:48:13,480
a key and a secret and I you 
said this earlier, I always 

797
00:48:13,480 --> 00:48:15,360
forget. 
Is that the same as the? 

798
00:48:19,040 --> 00:48:20,600
What's the other name that they 
use? 

799
00:48:20,600 --> 00:48:23,280
Client. 
Oh yeah, Key and secret. 

800
00:48:23,280 --> 00:48:24,480
Is that the same thing? 
Yeah. 

801
00:48:24,600 --> 00:48:26,880
Client. 
Yeah, client API key and there's

802
00:48:26,880 --> 00:48:29,000
one other one that they used to 
and it throws me off. 

803
00:48:29,000 --> 00:48:32,040
Everywhere and I've never 
understood why their name 

804
00:48:32,160 --> 00:48:36,400
differently but. 
Yeah, so here's all of our 

805
00:48:36,400 --> 00:48:38,080
freaking secrets, which are 
amazing. 

806
00:48:39,200 --> 00:48:42,520
So the interesting part out 
here, this is not where we're 

807
00:48:42,520 --> 00:48:45,040
adding those, by the way. 
Right, this is the stuff that 

808
00:48:45,040 --> 00:48:48,200
goes back to all 0. 
But the, so the interesting 

809
00:48:48,200 --> 00:48:53,280
thing is that these keys, again,
I don't believe these are the 

810
00:48:53,280 --> 00:48:54,840
same. 
So we'll copy these down and, 

811
00:48:54,840 --> 00:48:58,200
and we'll see how this goes. 
So I'm just going to create a 

812
00:48:58,200 --> 00:49:00,680
new file and put these in here 
for a minute. 

813
00:49:02,080 --> 00:49:07,480
So this is let me grab these at 
least 'cause there's more than 

814
00:49:07,480 --> 00:49:08,960
those. 
So you'll see down here. 

815
00:49:08,960 --> 00:49:12,640
Like I, I grabbed a bunch of 
different ones because there's 

816
00:49:13,200 --> 00:49:14,400
it's super. 
Confusing. 

817
00:49:14,760 --> 00:49:15,880
Yeah. 
Oh, I had. 

818
00:49:15,880 --> 00:49:17,640
I was going through and 
resetting something up with 

819
00:49:17,640 --> 00:49:21,720
Twitter recently and I forgot, 
oh gosh I would like. 

820
00:49:21,720 --> 00:49:25,080
I couldn't get it for like an 
hour with the credentials and 

821
00:49:25,080 --> 00:49:26,600
then it turned out I can't 
remember what it was. 

822
00:49:26,600 --> 00:49:31,360
Something so stupid like I had 
an extra slash or space or 

823
00:49:31,360 --> 00:49:33,960
something when I was copying and
pasting something like something

824
00:49:34,080 --> 00:49:35,720
really ridiculous and I was so 
frustrated. 

825
00:49:37,480 --> 00:49:40,840
Let's see here. 
So let's go to app settings 

826
00:49:40,840 --> 00:49:43,040
next, because I think this is 
the actually. 

827
00:49:43,200 --> 00:49:47,280
So that was all API related keys
is my understanding now. 

828
00:49:47,800 --> 00:49:52,360
Now what we actually have to do 
is this is the actual Oauth set 

829
00:49:52,360 --> 00:49:57,280
up for this. 
So we turn these on do single 

830
00:49:57,280 --> 00:50:02,840
page app. 
And you can actually do this as 

831
00:50:02,840 --> 00:50:04,600
you're actually doing this as a 
web app in this. 

832
00:50:04,600 --> 00:50:07,280
Yeah, that's why I was just 
thinking it's web app, OK, Yeah.

833
00:50:08,120 --> 00:50:10,960
And then did you finish, did you
finish the all sero part by the 

834
00:50:10,960 --> 00:50:13,600
way? 
And so I think we have to do 

835
00:50:13,600 --> 00:50:16,760
this part for the auth 0. 
Part or auth 0. 

836
00:50:16,920 --> 00:50:21,480
I believe so because this will 
this will produce O auth keys 

837
00:50:21,480 --> 00:50:23,320
for us. 
See, and I don't, I don't know 

838
00:50:23,320 --> 00:50:26,040
where the I don't either. 
I don't know where it 

839
00:50:26,040 --> 00:50:29,240
differentiates between OIDC and 
O auth. 

840
00:50:30,000 --> 00:50:32,640
Yes, that. 
That's a struggle for me. 

841
00:50:32,640 --> 00:50:37,120
Too if you so go through, go 
through the setup guide if you 

842
00:50:37,120 --> 00:50:38,520
don't mind. 
Like click on the setup guide 

843
00:50:38,520 --> 00:50:39,600
there. 
Yeah, let's do that. 

844
00:50:40,040 --> 00:50:42,720
Inside of maybe it's 
installation? 

845
00:50:43,440 --> 00:50:48,040
Is that not the right? 
You could also so they they have

846
00:50:48,040 --> 00:50:50,680
a set up I'm pointing at my 
screen like you can see and the 

847
00:50:50,680 --> 00:50:54,040
top right ish like up a little 
bit over here yeah thank you. 

848
00:50:54,920 --> 00:50:57,280
Oh it's not that big. 
It's also covered on the stream 

849
00:50:57,280 --> 00:50:59,480
by your. 
I wish I could push. 

850
00:50:59,720 --> 00:51:01,560
I feel like you can get to a 
full. 

851
00:51:01,920 --> 00:51:06,120
There you go. 
But syncs prove a blah blah blah

852
00:51:06,120 --> 00:51:08,080
option. 
I need to say all that doesn't 

853
00:51:08,080 --> 00:51:11,080
tell me much. 
Offer to a developer. 

854
00:51:11,400 --> 00:51:13,080
Got it? 
Create a project and a new app. 

855
00:51:13,680 --> 00:51:17,160
During this process, Twitter 
will generate your API key and 

856
00:51:17,160 --> 00:51:19,160
your API secret key for your 
application. 

857
00:51:19,520 --> 00:51:21,920
We already have those. 
So we do have those. 

858
00:51:24,440 --> 00:51:26,480
And then you update, then you 
give it the. 

859
00:51:26,480 --> 00:51:28,880
Call back. 
This is, this is the domain 

860
00:51:29,000 --> 00:51:31,360
part. 
So that's this guy. 

861
00:51:32,760 --> 00:51:37,360
Yeah, your stuff is really 
confusing for me 'cause I one, 

862
00:51:37,360 --> 00:51:40,280
I've never used all CRO on top 
of something else like Apprite. 

863
00:51:40,280 --> 00:51:43,760
So there's like there's this 
difference of like the JWT that 

864
00:51:43,760 --> 00:51:47,600
comes back from Alciro I think 
is like not even useful 'cause 

865
00:51:47,600 --> 00:51:52,120
then you translate that to a JWT
and Apprite and then where the 

866
00:51:52,120 --> 00:51:56,320
callback URLs and stuff go. 
I'm not 100% sure with this like

867
00:51:56,320 --> 00:51:59,320
extra two extra things for me 
but. 

868
00:51:59,720 --> 00:52:01,640
Website URL. 
I don't even know if that 

869
00:52:01,840 --> 00:52:07,400
matters so much. 
I don't know why it would. 

870
00:52:08,320 --> 00:52:11,120
So the did you already paste in 
the call back URL? 

871
00:52:11,840 --> 00:52:14,120
Yes, one above. 
So I don't. 

872
00:52:14,240 --> 00:52:16,160
Oh, that's the wrong one though.
Yeah, that's not right. 

873
00:52:16,320 --> 00:52:18,800
Should say Coding Kit. 
It should be, yeah. 

874
00:52:18,800 --> 00:52:22,880
It should be your domain. 
Let me go back to my apps. 

875
00:52:25,160 --> 00:52:27,680
Let's pop that open over here. 
I keep having to open it. 

876
00:52:29,960 --> 00:52:31,720
All zero's kind of annoying in 
the dashboard. 

877
00:52:31,720 --> 00:52:35,240
I believe if you have two pages 
open and you change pages, or 

878
00:52:35,240 --> 00:52:37,320
maybe it's if you change 
projects, they change the 

879
00:52:37,320 --> 00:52:38,720
projects all together. 
I can't remember. 

880
00:52:38,720 --> 00:52:40,560
There's something I think I'm 
OK. 

881
00:52:40,560 --> 00:52:43,360
I was doing this before, so I 
think we're OK. 

882
00:52:44,840 --> 00:52:48,400
OK, so we're bouncing around way
too much, but this is the 

883
00:52:48,440 --> 00:52:54,280
callback URL. 
And is it just, I don't, I think

884
00:52:54,280 --> 00:52:58,320
there's something at the end if 
you you go back to yeah. 

885
00:52:58,520 --> 00:53:02,640
Let's. 
Close that and looking at 

886
00:53:02,720 --> 00:53:09,960
closing the game so slash login 
slash call back, yeah, cool that

887
00:53:11,120 --> 00:53:13,240
and website URL is just like 
metadata. 

888
00:53:13,240 --> 00:53:15,120
So that is like kind of whatever
you want to put. 

889
00:53:15,120 --> 00:53:19,200
In OK, so these this client ID 
and secret now we're in business

890
00:53:19,800 --> 00:53:21,800
and this is this is where it 
gets interesting, right? 

891
00:53:21,800 --> 00:53:28,160
So now instead of API key, I 
actually have Twitter client 

892
00:53:28,280 --> 00:53:35,160
key. 
All right, Twitter, Twitter, 

893
00:53:35,640 --> 00:53:45,520
Twitter client secrets, right, 
got that We got that pool. 

894
00:53:46,400 --> 00:53:49,400
Now we're gonna take those 
values back into Auth 0. 

895
00:53:49,520 --> 00:53:56,440
Update this this little bigger 
for everybody that oh didn't get

896
00:53:56,440 --> 00:54:01,200
the whole thing. 
My gosh, is there a a dash is 

897
00:54:01,200 --> 00:54:02,920
that can't? 
It is at the beginning, yeah. 

898
00:54:02,920 --> 00:54:04,560
Oh my God. 
Yeah, I noticed that when you 

899
00:54:04,560 --> 00:54:06,040
pasted it and I allowed the 
double check. 

900
00:54:07,000 --> 00:54:10,240
Yeah. 
OK. 

901
00:54:10,560 --> 00:54:15,080
So we're going to save that. 
So theoretically, and this says 

902
00:54:15,080 --> 00:54:16,880
this over here, I still don't 
believe it. 

903
00:54:17,920 --> 00:54:21,320
I should be able to log in now 
using this try connection. 

904
00:54:23,120 --> 00:54:25,440
Yeah I I always got that before 
too. 

905
00:54:25,520 --> 00:54:26,920
I. 
Just yeah, I don't remember I. 

906
00:54:26,920 --> 00:54:28,680
Don't know why that is set up 
that way. 

907
00:54:28,680 --> 00:54:32,040
It's weird. 
So I'm not. 

908
00:54:32,040 --> 00:54:33,880
I don't trust that at all. 
Just FYI. 

909
00:54:34,800 --> 00:54:38,200
It took me way too many hours to
realize I didn't trust that. 

910
00:54:40,360 --> 00:54:44,480
So at that point we should have.
Yeah. 

911
00:54:44,480 --> 00:54:50,280
OK, so this Twitter social login
for auth 0 should be set up to 

912
00:54:50,280 --> 00:54:55,680
our new Twitter app under our 
project. 

913
00:54:56,240 --> 00:54:58,880
And you have all 0 redirecting 
back to app, right? 

914
00:54:59,640 --> 00:55:03,160
And then that's, that's the, 
that's the application part. 

915
00:55:03,160 --> 00:55:08,360
So this application with this 
client ID should Rab this client

916
00:55:08,360 --> 00:55:11,120
ID, this client secrets. 
All that should be good. 

917
00:55:11,640 --> 00:55:16,600
Yeah. 
So at that point, all of this, 

918
00:55:17,000 --> 00:55:18,840
let's see. 
Am I missing anything? 

919
00:55:18,840 --> 00:55:22,360
I've got a, got a. 
Yup, Yup. 

920
00:55:22,360 --> 00:55:24,600
Nice. 
Did you copy those environment 

921
00:55:24,600 --> 00:55:26,840
variables back into the main dot
env file enough? 

922
00:55:26,840 --> 00:55:28,560
Not yet, not yet. 
Yep. 

923
00:55:30,160 --> 00:55:35,200
So realistically the only thing 
that we do on our login button. 

924
00:55:35,200 --> 00:55:37,280
So let's go take a quick peek at
that. 

925
00:55:37,400 --> 00:55:40,360
It shouldn't even matter for for
this part because we're just 

926
00:55:40,360 --> 00:55:49,040
kind of redirecting on that. 
So layout has somewhere for 

927
00:55:49,040 --> 00:55:53,320
login. 
OK, so this is kind of the 

928
00:55:53,360 --> 00:55:55,880
interesting part. 
Again, this is coming from our 

929
00:55:55,880 --> 00:56:00,040
hooks and then create session 
and where that actually comes 

930
00:56:00,040 --> 00:56:04,760
in, Oh man, it's in our hooks 
library. 

931
00:56:04,760 --> 00:56:10,120
Hang on, we passed that in. 
I'm still terrible with the, so 

932
00:56:10,120 --> 00:56:14,440
that's right here. 
So DRS account has create 

933
00:56:14,440 --> 00:56:18,840
sessions. 
OK, So this is our actual call 

934
00:56:19,160 --> 00:56:21,200
for app, right, that we're 
hitting. 

935
00:56:21,720 --> 00:56:27,720
So we're going to say create an 
O auth two session with auth 

936
00:56:27,720 --> 00:56:31,280
zero and this is where our 
reader X going to go. 

937
00:56:31,840 --> 00:56:34,680
So that's it. 
Like none of my environment 

938
00:56:34,680 --> 00:56:38,560
variables should matter, 
although we will update them 

939
00:56:39,760 --> 00:56:42,680
because this is just on the app 
right side of the house. 

940
00:56:42,680 --> 00:56:49,120
Does that make sense? 
So that's how you so that 

941
00:56:49,120 --> 00:56:51,760
function. 
This login right here. 

942
00:56:55,480 --> 00:56:58,160
So that's this one. 
OK. 

943
00:56:59,560 --> 00:57:02,120
That's so weird that that's the 
second time I've seen this. 

944
00:57:02,560 --> 00:57:06,960
Oh, you probably, you're 
probably using Google because 

945
00:57:06,960 --> 00:57:08,720
all zero gives you Google by 
default. 

946
00:57:09,400 --> 00:57:12,200
All zero set up using test 
credentials with Google. 

947
00:57:12,200 --> 00:57:14,200
So it makes it nice for you to 
be able to test it out. 

948
00:57:14,280 --> 00:57:16,680
But that means that you haven't 
actually actually entered, like 

949
00:57:16,680 --> 00:57:18,640
you haven't done the same 
process you did for Twitter with

950
00:57:18,640 --> 00:57:19,280
Google. 
Gotcha. 

951
00:57:19,520 --> 00:57:21,280
Totally. 
OK, that makes sense. 

952
00:57:22,640 --> 00:57:24,600
OK, so let's try continue with 
Twitter. 

953
00:57:24,600 --> 00:57:30,640
Cross our fingers so boy, but 
that also so there's a 

954
00:57:30,640 --> 00:57:35,320
difference. 
By the time there's, there's 

955
00:57:35,320 --> 00:57:39,040
like there's a difference here 
of getting back to this page 

956
00:57:39,040 --> 00:57:42,720
versus oh, so this is, this is 
actually an app right page, 

957
00:57:42,720 --> 00:57:43,800
though. 
Correct. 

958
00:57:43,800 --> 00:57:47,000
Yeah. 
So we're coming back to account 

959
00:57:47,000 --> 00:57:50,960
sessions O auth two call back. 
Did you say you ever got this to

960
00:57:50,960 --> 00:57:53,920
work? 
Yeah, this was working last 

961
00:57:53,920 --> 00:57:56,520
night. 
I I started messing around with 

962
00:57:56,520 --> 00:58:00,200
comparing the with Firebase and 
updated some things and I 

963
00:58:00,200 --> 00:58:05,960
definitely shouldn't have. 
So I feel like there's one 

964
00:58:05,960 --> 00:58:08,760
little thing missing and I can't
remember what it is. 

965
00:58:08,800 --> 00:58:19,120
Like a redirect somewhere? 
So you can specify Are you sure 

966
00:58:19,120 --> 00:58:22,840
you're sending like if you go 
back to to configuration and 

967
00:58:22,840 --> 00:58:30,360
code, so you have you have two 
things and they set up that 

968
00:58:30,360 --> 00:58:31,520
redirection. 
Did we do that? 

969
00:58:32,200 --> 00:58:36,640
Oh, I I don't think we did that.
You had a, you had something in 

970
00:58:36,640 --> 00:58:37,600
there. 
I don't think you have that 

971
00:58:37,600 --> 00:58:45,920
whole thing. 
I don't think maybe is that what

972
00:58:45,920 --> 00:58:47,720
that is there. 
Hang on, are we in the right 

973
00:58:48,080 --> 00:58:52,240
Deborah Social yet? 
Here we go. 

974
00:58:54,800 --> 00:58:58,400
I'm just going to paste it. 
It should be that. 

975
00:58:58,560 --> 00:59:00,520
Yeah, so say that. 
And then the other thing is you 

976
00:59:00,520 --> 00:59:02,760
also have to configure that 
inside of. 

977
00:59:03,840 --> 00:59:06,240
So it. 
So this is telling us you're 

978
00:59:06,240 --> 00:59:09,200
here the places that you're 
allowed to call back to from 

979
00:59:09,200 --> 00:59:11,360
your application code. 
You also have to tell it when 

980
00:59:11,360 --> 00:59:15,760
you leave where to come back to.
I think we're, I think we're 

981
00:59:15,760 --> 00:59:20,360
doing that right here and that's
why I think the thing we just 

982
00:59:20,360 --> 00:59:24,280
deleted had local host on it, 
but I'm not sure. 

983
00:59:24,680 --> 00:59:29,560
The thing in down thing in all 
zero. 

984
00:59:30,360 --> 00:59:34,000
So those are those are just 
lists of places it can go back 

985
00:59:34,000 --> 00:59:35,480
to. 
It's not telling all zero where 

986
00:59:35,480 --> 00:59:39,600
to go back to. 
I don't think that would have 

987
00:59:39,600 --> 00:59:42,720
stopped it, but make sure you 
save that also at the bottom. 

988
00:59:43,760 --> 00:59:45,680
Do you want me to save it this 
way or this way? 

989
00:59:46,800 --> 00:59:48,920
Just trying to get stuff work. 
I would just only do the stuff 

990
00:59:48,920 --> 00:59:50,400
that you need. 
So I would do that one for now. 

991
00:59:51,520 --> 00:59:55,200
The thing that I am not sure of.
So back in the code, the code 

992
00:59:55,200 --> 01:00:02,840
that you're calling, you've got 
you're saying create O auth to 

993
01:00:02,840 --> 01:00:05,240
session, that's a that's an API 
from Apprite. 

994
01:00:05,320 --> 01:00:08,240
Is that right? 
So you're calling that from 

995
01:00:08,240 --> 01:00:13,080
Apprite, you're telling it to 
use the Aussie or provider I 

996
01:00:13,080 --> 01:00:17,160
guess Apprite on its own server.
So when you are you redirecting 

997
01:00:17,160 --> 01:00:20,040
to Apprite first? 
You have to be. 

998
01:00:20,240 --> 01:00:24,880
Right, so this goes and hits 
appright with this this call and

999
01:00:24,880 --> 01:00:28,960
then appright is going to go to 
auth 0, which we we get that far

1000
01:00:28,960 --> 01:00:31,440
right 'cause then we get our 
login page. 

1001
01:00:32,480 --> 01:00:36,080
We then hit Twitter. 
It goes out to Twitter and logs 

1002
01:00:36,080 --> 01:00:41,200
in and when it it should be. 
Then on its way back so it goes 

1003
01:00:41,200 --> 01:00:44,240
Twitter. 
You're good, Pass that to Auth 

1004
01:00:44,280 --> 01:00:46,680
0. 
Auth 0 says you're good. 

1005
01:00:46,880 --> 01:00:50,640
Pass that back to the hosted 
version of. 

1006
01:00:50,760 --> 01:00:54,760
Apprin and I guess so. 
The one thing I'm missing that I

1007
01:00:54,760 --> 01:00:59,200
think Apprite the server, not 
the client SDK is taking care of

1008
01:00:59,880 --> 01:01:02,800
is when you tell. 
When you tell us to go to 

1009
01:01:02,800 --> 01:01:06,080
Apprite initially, Apprite is 
then going to call off zero and 

1010
01:01:06,080 --> 01:01:08,560
tell off 0 where to redirect 
back to. 

1011
01:01:08,920 --> 01:01:12,080
Yep, like that redirect URL you 
don't have to have in your code 

1012
01:01:12,120 --> 01:01:17,120
because you're sending to 
apprite kind of not Willy nilly,

1013
01:01:17,120 --> 01:01:19,920
but like without much more 
detail than just use all zero. 

1014
01:01:20,480 --> 01:01:22,600
Yeah, because Apprite is then 
telling all zero where to come 

1015
01:01:22,600 --> 01:01:24,920
back to. 
You right, and because we 

1016
01:01:24,920 --> 01:01:28,480
already are on the correct 
server in apprite, it knows how 

1017
01:01:28,480 --> 01:01:30,600
to handle the rest. 
It's got the project and all 

1018
01:01:30,600 --> 01:01:34,240
that fun stuff. 
So let me let me open up the 

1019
01:01:34,240 --> 01:01:37,720
inspector just one more time. 
I used to have to do this stuff 

1020
01:01:37,920 --> 01:01:41,280
into SAP, which was even worse 
than this, if you can believe it

1021
01:01:41,280 --> 01:01:45,960
or not. 
But this always helps a ton with

1022
01:01:46,000 --> 01:01:50,400
JWTS and all that fun stuff. 
So if we go login, you'll see 

1023
01:01:50,400 --> 01:01:56,760
here. 
So here is our hosted dot coding

1024
01:01:56,760 --> 01:02:01,160
cat dev. 
So this is and we're saying on 

1025
01:02:01,160 --> 01:02:06,320
success come back to localhost 
3000 and then failure do the 

1026
01:02:06,320 --> 01:02:09,960
same thing. 
So we we then get redirected 

1027
01:02:09,960 --> 01:02:13,280
over to authorize which is in 
auth 0. 

1028
01:02:14,080 --> 01:02:17,920
So here's our authorize with the
correct clients and all of that 

1029
01:02:17,920 --> 01:02:20,200
should be good and it has 
response. 

1030
01:02:20,200 --> 01:02:23,440
Type of code? 
Yep, and it has the redirect Uri

1031
01:02:23,520 --> 01:02:26,280
in there to the app right 
domain. 

1032
01:02:26,280 --> 01:02:31,160
Let's see. 
And the first line of that, like

1033
01:02:31,160 --> 01:02:32,600
in the middle, redirect your 
eye, yeah. 

1034
01:02:33,000 --> 01:02:36,760
Yeah, hosted, Yep. 
So that that should be good. 

1035
01:02:37,400 --> 01:02:39,520
And now we're sitting at this 
login state. 

1036
01:02:41,160 --> 01:02:44,360
So the cool part if people if 
you haven't dealt with is there 

1037
01:02:44,360 --> 01:02:48,560
a code query param in the URL? 
Yeah, we'll have to check that 

1038
01:02:48,560 --> 01:02:50,720
when? 
This I believe there is right 

1039
01:02:51,160 --> 01:02:54,840
response type code. 
That's telling. 

1040
01:02:54,840 --> 01:02:58,200
That's telling it what kind of 
response type it wants when it 

1041
01:02:58,200 --> 01:02:59,960
comes back. 
He's asking if that thing is 

1042
01:02:59,960 --> 01:03:03,000
actually coming back in there 
when we actually come back, 

1043
01:03:03,000 --> 01:03:05,200
'cause that's the error that it 
was saying in app, right? 

1044
01:03:05,200 --> 01:03:07,400
Is it this code? 
The code is required. 

1045
01:03:07,760 --> 01:03:12,440
So let's hit hit Twitter. 
Now keep walking the chain here.

1046
01:03:13,280 --> 01:03:17,080
So we hit the Twitter login. 
Sorry, no. 

1047
01:03:22,450 --> 01:03:25,090
Oh, this is sorry. 
This is the state that we were 

1048
01:03:25,090 --> 01:03:32,160
in all 0. 
I don't see this actually going 

1049
01:03:32,160 --> 01:03:45,660
on to Twitter though, do you? 
Because it went from the login 

1050
01:03:45,660 --> 01:03:49,180
state where we're at. 
So this is this is our login 

1051
01:03:49,180 --> 01:04:01,480
that we and then we clicked on 
Twitter and it posted a 302 that

1052
01:04:01,480 --> 01:04:05,160
three O2 should be sending us 
back. 

1053
01:04:10,790 --> 01:04:12,830
I don't think we're actually 
hitting Twitter. 

1054
01:04:13,990 --> 01:04:23,770
Let me do this Incognito once. 
Yeah, we're definitely not 

1055
01:04:23,770 --> 01:04:26,530
hitting Twitter because it would
pop up right here because I'm 

1056
01:04:26,530 --> 01:04:31,810
not logged in anymore. 
So it's definitely between auth 

1057
01:04:31,810 --> 01:04:34,410
zero and Twitter now and. 
Twitter. 

1058
01:04:35,600 --> 01:04:39,240
Man, sorry, I didn't mean to 
bring your old your old work 

1059
01:04:39,240 --> 01:04:45,320
back into this. 
I'm like not near as well versed

1060
01:04:45,320 --> 01:04:46,680
in that stuff as that used to 
be. 

1061
01:04:47,440 --> 01:04:51,120
So this would be in like in the 
social connection. 

1062
01:04:52,720 --> 01:04:57,240
Let me let me bring this up too,
just to make sure this off to 

1063
01:04:57,240 --> 01:05:00,920
doc that we Oh no, we might have
to redirect that somewhere. 

1064
01:05:01,520 --> 01:05:11,440
That's that's not quite good. 
I don't think this is the 

1065
01:05:11,440 --> 01:05:13,560
problem though. 
Like this is all fine. 

1066
01:05:13,560 --> 01:05:16,600
Well, it's making it so it's 
coming back to that URL, I 

1067
01:05:16,600 --> 01:05:19,400
think. 
And yeah, it's not including 

1068
01:05:19,400 --> 01:05:23,520
that token. 
So all zero is just not going to

1069
01:05:23,520 --> 01:05:26,960
Twitter and just redirecting. 
Yeah, it seems like it's not 

1070
01:05:26,960 --> 01:05:40,230
finishing on its side. 
This would be, well I'm not 

1071
01:05:40,230 --> 01:05:45,560
sure. 
So you're that application would

1072
01:05:45,560 --> 01:05:47,320
actually. 
I don't think it makes much of a

1073
01:05:47,320 --> 01:05:49,720
difference in this case, but I 
think it would be registered as 

1074
01:05:49,720 --> 01:05:54,600
a regular web app instead of 
single page app because the 

1075
01:05:54,600 --> 01:05:58,200
application that all zero is 
actually dealing with is app, 

1076
01:05:58,200 --> 01:06:01,280
right? 
Yes, Yep. 

1077
01:06:05,200 --> 01:06:06,920
Well, that's interesting. 
I didn't even know you could 

1078
01:06:06,920 --> 01:06:09,120
like click this. 
I don't think I've ever used 

1079
01:06:09,120 --> 01:06:11,920
that. 
And what is the if you go to the

1080
01:06:11,920 --> 01:06:18,680
installation? 
What is this? 

1081
01:06:18,680 --> 01:06:22,440
Enable 3 legged? 
Oh, there's a toggle switch. 

1082
01:06:25,600 --> 01:06:29,400
It may be an outdated. 
So this says API key in secret. 

1083
01:06:29,400 --> 01:06:31,600
I'm wondering if I need to 
switch that back. 

1084
01:06:34,040 --> 01:06:36,760
We'll generate API keys. 
Let's try it out. 

1085
01:06:37,160 --> 01:06:42,080
Let's switch that instead of. 
Yeah, instead of. 

1086
01:06:42,080 --> 01:06:44,400
You added a client, You added 
client credentials. 

1087
01:06:45,120 --> 01:06:47,840
Is that right? 
Yes, I did. 

1088
01:06:48,360 --> 01:06:52,480
Yeah. 
Let's switch this to this. 

1089
01:06:55,080 --> 01:07:02,360
I read Let Us Down the wrong Rd.
Like, like in some point in this

1090
01:07:02,360 --> 01:07:06,400
documentation, there should be 
some acknowledgement from all 

1091
01:07:06,400 --> 01:07:10,480
zero and from Twitter to say 
grab these things. 

1092
01:07:10,480 --> 01:07:13,840
These are specifically these 
things, not these specific 

1093
01:07:13,840 --> 01:07:15,480
things. 
Like I don't, I don't know why 

1094
01:07:15,480 --> 01:07:20,120
they let there be so much 
ambiguity, especially like on 

1095
01:07:20,120 --> 01:07:21,640
the Twitter. 
I, I don't know, I yeah. 

1096
01:07:21,920 --> 01:07:26,240
It's frustrating and every site,
every social login is different,

1097
01:07:26,520 --> 01:07:28,240
so they're all equally as 
frustrating. 

1098
01:07:28,280 --> 01:07:32,480
But Twitter. 
So I just want to call out and 

1099
01:07:32,480 --> 01:07:33,920
let me see if I can zoom in 
more. 

1100
01:07:34,160 --> 01:07:36,120
No, I can't. 
How do you remember a Mac? 

1101
01:07:36,120 --> 01:07:38,320
How you can like zoom? 
I can't ever remember that. 

1102
01:07:38,880 --> 01:07:42,640
Just command plus. 
Command no like in on your 

1103
01:07:42,640 --> 01:07:45,720
screen like you can click. 
There's a way to do it. 

1104
01:07:45,720 --> 01:07:47,720
I can't remember. 
Anyways, like on the actual 

1105
01:07:47,720 --> 01:07:49,640
window you can just like pinch 
zoom. 

1106
01:07:50,480 --> 01:07:54,560
Oh, I don't have a trackpad. 
Oh, really? 

1107
01:07:54,840 --> 01:07:57,000
No, I'm on. 
I'm on Mac Studio. 

1108
01:07:58,400 --> 01:08:01,200
OK, well forget that what this 
says. 

1109
01:08:01,840 --> 01:08:05,320
It says authenticate. 
So I just want to be very clear 

1110
01:08:05,520 --> 01:08:07,840
when we're going through this 
login process, this is 

1111
01:08:07,840 --> 01:08:10,160
authenticating again. 
We started out talking about 

1112
01:08:10,160 --> 01:08:13,360
that that way and hopefully 
we'll get back to that. 

1113
01:08:14,120 --> 01:08:17,240
So this is just testing. 
We we're not actually doing 

1114
01:08:17,240 --> 01:08:19,399
anything. 
This is what comes back to us, 

1115
01:08:19,399 --> 01:08:22,200
which is great, apparently. 
Oh, so that thing works now, 

1116
01:08:22,200 --> 01:08:23,160
huh? 
That test. 

1117
01:08:23,160 --> 01:08:25,240
Yeah. 
So this probably when I was 

1118
01:08:25,240 --> 01:08:26,880
testing before, but I had it all
screwed up. 

1119
01:08:26,880 --> 01:08:31,359
So, OK, so I think we have all 
of that solved. 

1120
01:08:31,439 --> 01:08:34,160
Let's go all the way back over 
here. 

1121
01:08:35,479 --> 01:08:37,680
So I think this is hooked up 
right now. 

1122
01:08:37,680 --> 01:08:43,880
We click login and we're already
logged in cause auth zero was 

1123
01:08:43,880 --> 01:08:45,399
cool enough to let us in 
already. 

1124
01:08:45,640 --> 01:08:51,359
So I did forcibly. 
Yeah, we're we're in like we're 

1125
01:08:51,359 --> 01:08:57,040
in the login piece. 
I did forcibly create a logout. 

1126
01:08:57,040 --> 01:09:01,960
So this this I put a like a 
issue out on our our repo for 

1127
01:09:01,960 --> 01:09:05,840
because it's kind of weird on 
auth 0, if I were to click log 

1128
01:09:05,840 --> 01:09:08,760
out in app right, I would log 
out of app right? 

1129
01:09:08,760 --> 01:09:12,160
And our JWT and all that, which 
is still in law. 

1130
01:09:12,760 --> 01:09:14,359
We had this all the time at work
too. 

1131
01:09:14,359 --> 01:09:17,680
People needed it. 
So if I click this now actually 

1132
01:09:17,680 --> 01:09:21,600
forward over to auth 0A pop up 
screen, which forcibly logs us 

1133
01:09:21,600 --> 01:09:24,680
out. 
So now when I click login, I 

1134
01:09:24,680 --> 01:09:27,600
actually get the screen. 
So it like it's better for 

1135
01:09:27,600 --> 01:09:30,120
people to understand where 
they're going and now we should 

1136
01:09:30,120 --> 01:09:34,800
come back in like normal. 
So we are logged in with Twitter

1137
01:09:34,800 --> 01:09:38,560
to our application. 
Now the next part of what we 

1138
01:09:38,560 --> 01:09:41,200
were trying to do is add this 
Twitter access. 

1139
01:09:41,840 --> 01:09:45,880
Oops, I just clicked it. 
This already works because 

1140
01:09:45,880 --> 01:09:49,200
again, I had all that working. 
Now that it's the correct user 

1141
01:09:49,200 --> 01:09:54,240
that I'm using, this part works.
This was basically all the stuff

1142
01:09:54,240 --> 01:09:57,120
I wanted to talk to James about.
So I need a a quick time check 

1143
01:09:57,120 --> 01:09:59,480
for you. 
Should we circle back James? 

1144
01:09:59,480 --> 01:10:02,320
I know we're we're over my 
promised one hour. 

1145
01:10:03,200 --> 01:10:06,880
Yeah, I'm probably gonna run in 
a few minutes. 

1146
01:10:06,880 --> 01:10:09,280
We can go until like 11/30, 
12:30 your time. 

1147
01:10:10,120 --> 01:10:12,000
Cool. 
So hopefully we can quickly get 

1148
01:10:12,000 --> 01:10:15,920
to to what's next and then 
hopefully maybe again next time 

1149
01:10:15,920 --> 01:10:20,000
we'll actually do it. 
So this tricky part, what 

1150
01:10:20,000 --> 01:10:23,360
happened with that button is we 
actually redirected to 

1151
01:10:23,360 --> 01:10:26,160
authenticate. 
And I can show you this again, 

1152
01:10:26,160 --> 01:10:30,560
hopefully real quick. 
If I go into our database now 

1153
01:10:30,760 --> 01:10:34,800
and I kill this user record, so 
I'm just going to delete this 

1154
01:10:34,800 --> 01:10:38,480
whole document. 
This should reset us back over 

1155
01:10:38,480 --> 01:10:41,040
here to a button. 
Now we have our button. 

1156
01:10:41,840 --> 01:10:44,840
Now this might go quick again. 
So I'm going to pop open the 

1157
01:10:44,840 --> 01:10:49,040
inspection tools. 
So think of this ad Twitter, 

1158
01:10:49,360 --> 01:10:51,800
ignore the fact we logged in 
with Twitter up here. 

1159
01:10:52,080 --> 01:10:55,640
But this new Twitter, I'm just 
realizing as I'm talking, we 

1160
01:10:55,640 --> 01:10:57,880
didn't update, I didn't update 
the environment variables. 

1161
01:10:57,880 --> 01:11:01,800
So let me do that real quick. 
What happens when you have a 

1162
01:11:01,840 --> 01:11:06,880
million of them? 
Oh gosh, did I name them the 

1163
01:11:06,880 --> 01:11:11,240
same I did by some miracle. 
Let's kill those. 

1164
01:11:11,280 --> 01:11:23,120
Let me restart server, OK, 
refresh, pull those in real 

1165
01:11:23,120 --> 01:11:27,120
quick. 
OK, so now this button, if we 

1166
01:11:27,120 --> 01:11:29,840
were logged in with like 
LinkedIn or just app right 

1167
01:11:29,840 --> 01:11:31,640
itself doesn't matter at this 
point. 

1168
01:11:31,640 --> 01:11:34,160
So we're logged into our app. 
This is what's going to give us 

1169
01:11:34,160 --> 01:11:37,080
access. 
And the difference here is 

1170
01:11:37,080 --> 01:11:40,120
authorize. 
So instead of authenticate like 

1171
01:11:40,120 --> 01:11:43,880
we did the first time, now we're
authorizing Deverell Social to 

1172
01:11:43,880 --> 01:11:49,400
access my account on coding cat.
So I'm gonna. 

1173
01:11:49,520 --> 01:11:53,920
This is I think. 
Something's wrong still, but. 

1174
01:11:53,920 --> 01:11:57,000
Yeah. 
Well, so that shouldn't have 

1175
01:11:57,000 --> 01:12:01,320
gone back to all 0. 
No, it shouldn't have one. 

1176
01:12:01,320 --> 01:12:03,600
I think you only had read 
permissions and I think you 

1177
01:12:03,600 --> 01:12:04,960
want, right. 
So if you go back to that 

1178
01:12:04,960 --> 01:12:07,560
consent screen, it said just 
like read your timeline and read

1179
01:12:07,560 --> 01:12:10,080
something, something. 
So I've found which is kind of 

1180
01:12:10,080 --> 01:12:11,800
interesting. 
That is fine. 

1181
01:12:12,400 --> 01:12:17,680
It's the old Oauth one set up. 
It's totally screwed up James. 

1182
01:12:17,840 --> 01:12:21,960
Like just just with that am I 
able to update my profile image?

1183
01:12:24,080 --> 01:12:25,280
Yeah. 
Oh, that's great. 

1184
01:12:25,280 --> 01:12:28,600
OK, I know that's that's not 
good, but well, OK. 

1185
01:12:28,680 --> 01:12:33,080
Well, the other thing that I 
think did still make sense was 

1186
01:12:33,080 --> 01:12:35,760
that shouldn't be redirecting 
back to Auth 0. 

1187
01:12:35,880 --> 01:12:39,800
Yes, but this is where so that 
redirect I need the local host 

1188
01:12:39,800 --> 01:12:41,200
back in. 
I think that's. 

1189
01:12:41,200 --> 01:12:43,320
We took and I don't know, I 
don't know where that gets 

1190
01:12:43,320 --> 01:12:45,480
differentiated though. 
So I didn't. 

1191
01:12:45,520 --> 01:12:47,200
I didn't either. 
And when I threw it in, it was 

1192
01:12:47,200 --> 01:12:49,200
just magic and I was like sweet,
it worked. 

1193
01:12:49,960 --> 01:12:55,400
So I don't know. 
So this works. 

1194
01:12:55,840 --> 01:13:01,520
So let's let's add that back in.
I don't know why, but wait. 

1195
01:13:01,520 --> 01:13:03,120
What? 
Yeah, yeah, yeah. 

1196
01:13:03,120 --> 01:13:06,640
So hang on. 
I hope I'm, I'm hoping this 

1197
01:13:06,640 --> 01:13:08,720
works now. 
So I'm going to add Twitter 

1198
01:13:08,720 --> 01:13:12,400
access so we can update that 
too. 

1199
01:13:12,400 --> 01:13:14,040
But I don't, I really don't 
think it matters. 

1200
01:13:14,040 --> 01:13:19,880
I've updated this before. 
This callback is wrong. 

1201
01:13:20,480 --> 01:13:22,280
I don't know why it wants to go 
here now. 

1202
01:13:23,040 --> 01:13:26,920
What so it will? 
It totally determined it on its 

1203
01:13:26,920 --> 01:13:29,920
own before because I was from 
local host. 

1204
01:13:30,160 --> 01:13:31,200
There must have been something 
else. 

1205
01:13:31,200 --> 01:13:36,400
So those things don't 
automatically if you use like if

1206
01:13:36,400 --> 01:13:42,080
you use an SDK and tell it to go
to Aussie row, the SDK is going 

1207
01:13:42,080 --> 01:13:44,200
to throw in whatever domain 
you're on by default and you can

1208
01:13:44,200 --> 01:13:49,280
override that like. 
You can clarify, but here you're

1209
01:13:49,280 --> 01:13:51,880
not going. 
Should be. 

1210
01:13:51,960 --> 01:13:54,680
Like you're not going anywhere 
through Auth 0 to get to 

1211
01:13:54,680 --> 01:13:57,560
Twitter, you're going to Twitter
directly, correct? 

1212
01:13:57,640 --> 01:14:07,000
Yep, and let me try this 
hopefully one more time. 

1213
01:14:09,440 --> 01:14:11,400
So I'll just walk this through 
for people too. 

1214
01:14:12,600 --> 01:14:19,560
So when we set that over, 
there's our Oauth token. 

1215
01:14:21,120 --> 01:14:24,320
The interesting part to me is 
always how does Twitter know 

1216
01:14:24,320 --> 01:14:29,840
where to go back to right now? 
So I came from localhost 3000 

1217
01:14:29,840 --> 01:14:32,840
API Twitter. 
What it needs to go back to is 

1218
01:14:32,840 --> 01:14:36,720
localhost slash API slash 
Twitter slash callback. 

1219
01:14:37,360 --> 01:14:43,040
And what I did was I just added 
that back into our app for a OK 

1220
01:14:43,040 --> 01:14:50,560
callback right here. 
But how? 

1221
01:14:50,560 --> 01:14:52,680
I don't know if this is still 
going to work or not, but. 

1222
01:14:52,920 --> 01:14:58,360
My guess is no. 
OK, because Twitter like that 

1223
01:14:58,360 --> 01:15:02,680
list and all zeroes just a list 
of places it of approved places 

1224
01:15:02,680 --> 01:15:04,360
to go. 
But something starts to tell it 

1225
01:15:04,360 --> 01:15:07,600
where to go. 
So Twitter in this case is not 

1226
01:15:07,600 --> 01:15:10,280
telling. 
Twitter in this case is 

1227
01:15:10,280 --> 01:15:15,880
redirecting back to auth 0. 
It shouldn't be. 

1228
01:15:15,880 --> 01:15:17,520
It should just come back to 
local host. 

1229
01:15:18,360 --> 01:15:20,320
But you only that. 
This is where I don't know where

1230
01:15:20,320 --> 01:15:26,480
you differentiate between 
authentication and authorization

1231
01:15:26,480 --> 01:15:29,160
because there's only one 
redirect URL inside of Twitter. 

1232
01:15:29,160 --> 01:15:31,360
So if you're using the same app 
in Twitter, there's only one 

1233
01:15:31,360 --> 01:15:35,560
redirect URL, which means I'm 
logging in against Twitter. 

1234
01:15:35,560 --> 01:15:38,520
It's redirecting with the URL 
that's configured in there to go

1235
01:15:38,520 --> 01:15:40,400
back to all zero. 
Now you're trying to do the 

1236
01:15:40,400 --> 01:15:44,600
authorization piece to get the 
access token for Twitter, but 

1237
01:15:44,600 --> 01:15:46,880
you're not coming through all 
zero to do that. 

1238
01:15:46,880 --> 01:15:50,200
You're going directly to 
Twitter, which then Twitter only

1239
01:15:50,200 --> 01:15:55,880
has the, it only has one 
callback URL defined inside of 

1240
01:15:55,880 --> 01:15:57,320
Twitter. 
So it goes back to that, which 

1241
01:15:57,320 --> 01:16:02,280
is all zero. 
But all zero didn't really have 

1242
01:16:03,600 --> 01:16:06,280
anywhere to say I I don't know. 
They're like two different flows

1243
01:16:06,280 --> 01:16:08,360
that I don't know how to 
distinguish between. 

1244
01:16:08,600 --> 01:16:14,160
Yep, totally agree. 
There is one other thing I'm 

1245
01:16:14,160 --> 01:16:17,640
missing somewhere then. 
But I would have so I would have

1246
01:16:17,680 --> 01:16:23,200
thought this one that like the 
thing I would have thought that 

1247
01:16:23,200 --> 01:16:29,520
the access token that you get 
back from auth 0 regardless of 

1248
01:16:29,520 --> 01:16:31,960
app, right? 
You could send directly back to 

1249
01:16:31,960 --> 01:16:34,960
Twitter to then get the other 
thing I think. 

1250
01:16:35,120 --> 01:16:41,600
This is how I did this before. 
I should call that I. 

1251
01:16:41,640 --> 01:16:46,560
Think so that may if you're 
telling me so now when you're 

1252
01:16:46,560 --> 01:16:49,880
now when you're initiating the 
process of going to Twitter, if 

1253
01:16:49,880 --> 01:16:54,280
you're telling Twitter that 
that's the callback URL to use 

1254
01:16:55,000 --> 01:16:58,080
like when you what's the 
configuration object or you can 

1255
01:16:58,080 --> 01:17:00,520
click on try it. 
But for that configuration 

1256
01:17:00,520 --> 01:17:04,240
object in code, I bet it has 
that callback URL that's still 

1257
01:17:04,240 --> 01:17:07,760
going back to US URL. 
Yes. 

1258
01:17:07,760 --> 01:17:12,200
So let's see for that, let's 
back up to that button. 

1259
01:17:15,880 --> 01:17:18,320
Where am I? 
This also just feels like not a 

1260
01:17:18,320 --> 01:17:21,440
shot at anybody in particular, 
but this just seems like such a 

1261
01:17:21,440 --> 01:17:24,880
common thing that it should be 
much more straightforward. 

1262
01:17:24,960 --> 01:17:26,800
Oh, it's so frustrating every 
time. 

1263
01:17:29,480 --> 01:17:31,000
Yeah. 
So I think this is where we 

1264
01:17:31,000 --> 01:17:32,680
actually started, right? 
At Twitter Access. 

1265
01:17:32,680 --> 01:17:33,640
Yes. 
OK, Twitter. 

1266
01:17:34,640 --> 01:17:36,200
Access which calls read or 
write. 

1267
01:17:36,280 --> 01:17:40,600
So this goes into our API 
Twitter which goes here. 

1268
01:17:40,600 --> 01:17:42,400
So you hit your, you hit your 
endpoint. 

1269
01:17:43,400 --> 01:17:48,160
Yep. 
So this one here's our access 

1270
01:17:48,160 --> 01:17:52,000
request token. 
Let's see where. 

1271
01:17:53,400 --> 01:17:56,120
Yeah, that doesn't matter. 
That doesn't matter. 

1272
01:17:56,960 --> 01:18:04,720
Where's the actual call to 
Twitter here? 

1273
01:18:07,320 --> 01:18:11,960
I wonder if this is where the 
confusion on my part was Is that

1274
01:18:11,960 --> 01:18:16,400
this is the Oauth and in the 
Oauth side I need to put a 

1275
01:18:16,400 --> 01:18:24,440
different redirect on this 
application and that's where 

1276
01:18:24,440 --> 01:18:27,720
those other keys come into play.
I don't know. 

1277
01:18:28,120 --> 01:18:30,840
To be honest, I'm not sure. 
Yeah, it seems. 

1278
01:18:30,840 --> 01:18:32,000
Very. 
The only the one thing I'm 

1279
01:18:32,000 --> 01:18:36,440
wondering is if you could. 
I feel like that was if you 

1280
01:18:36,440 --> 01:18:40,480
could specify as a query param 
the callback URL in that request

1281
01:18:40,480 --> 01:18:41,840
that you were just looking at in
code. 

1282
01:18:45,080 --> 01:18:49,000
I don't know if you can or not. 
I also don't know if the Oauth 

1283
01:18:49,000 --> 01:18:57,800
token, if that already has the 
callback request X Yeah, see 

1284
01:18:58,120 --> 01:18:59,760
this. 
This is the part that's really 

1285
01:18:59,760 --> 01:19:07,520
throwing me off Oops. 
Because that that was this, 

1286
01:19:07,520 --> 01:19:12,800
right? 
So hang on. 

1287
01:19:12,800 --> 01:19:15,960
We fixed, we fixed our other 
issue by switching out the keys.

1288
01:19:15,960 --> 01:19:20,120
I wonder if I put these to the 
client keys because that would 

1289
01:19:20,120 --> 01:19:22,520
tell it the correct one to come 
back to you. 

1290
01:19:22,520 --> 01:19:24,760
I don't know. 
I'm done chasing my tail I think

1291
01:19:24,760 --> 01:19:26,600
at this point. 
Yeah, I don't know, 

1292
01:19:26,600 --> 01:19:28,560
unfortunately. 
It's all good. 

1293
01:19:29,880 --> 01:19:34,640
So Long story short, I can't 
show you the screen. 

1294
01:19:34,640 --> 01:19:40,720
I wanted to, but next time what 
we're going to get into, I'll 

1295
01:19:40,720 --> 01:19:44,480
just put us up on the screen now
because that was a little messy.

1296
01:19:45,640 --> 01:19:50,360
OK, So what we're trying to 
accomplish now that we have, 

1297
01:19:50,360 --> 01:19:52,880
we'll we'll have Twitter logged 
in. 

1298
01:19:53,720 --> 01:19:57,640
We're going to then authorize 
Twitter to update our API. 

1299
01:19:58,760 --> 01:20:03,400
What we're doing for the image, 
the the profile is building an 

1300
01:20:03,400 --> 01:20:07,240
image using Cloudnary's API 
because we can layer on text and

1301
01:20:07,240 --> 01:20:10,600
things like that. 
And then the cool part on app 

1302
01:20:10,600 --> 01:20:14,320
right side is we can create Cron
jobs, which might be the right 

1303
01:20:14,320 --> 01:20:17,400
way to do it. 
So like every 30 seconds we'll 

1304
01:20:17,400 --> 01:20:21,120
update your profile and like 
read your emojis, read your 

1305
01:20:21,120 --> 01:20:24,720
whatever and dynamically create 
that Cloudnary image. 

1306
01:20:25,480 --> 01:20:28,240
I don't even know if we need 
cloud and area so we can talk 

1307
01:20:28,240 --> 01:20:30,520
about that too. 
There might be an easier way to 

1308
01:20:30,520 --> 01:20:32,960
do this. 
But the cool part is we can use 

1309
01:20:33,000 --> 01:20:36,240
Apprites Cron jobs basically 
free. 

1310
01:20:36,240 --> 01:20:43,720
Like if you stood this thing up,
which it is on Digitalocean for 

1311
01:20:43,720 --> 01:20:47,760
5 bucks or 10 bucks or whatever,
you can basically go to town at 

1312
01:20:47,760 --> 01:20:52,200
this point and have like a 
million users and you can run 

1313
01:20:52,200 --> 01:20:55,240
Cron jobs all day. 
And that should then use that 

1314
01:20:55,240 --> 01:20:59,600
access token that we have now to
update your profile image, just 

1315
01:20:59,600 --> 01:21:01,480
like what's happening currently 
for mine. 

1316
01:21:01,480 --> 01:21:05,480
So that's the long term goal on 
top of a bunch of other stuff. 

1317
01:21:05,480 --> 01:21:09,800
But thank you for fighting with 
me on that, James. 

1318
01:21:10,040 --> 01:21:13,880
That was. 
I'm really curious though to 

1319
01:21:13,880 --> 01:21:17,240
figure out how you end up 
separating those two things in 

1320
01:21:17,240 --> 01:21:18,120
the future. 
I am too. 

1321
01:21:18,120 --> 01:21:21,320
I'm going to, I'm going to tear 
down the entire app and like 

1322
01:21:21,320 --> 01:21:23,600
start over and clean up these 
environment keys. 

1323
01:21:23,600 --> 01:21:26,720
But I will, I'll write it up 
because I think this will be 

1324
01:21:26,720 --> 01:21:27,800
cool. 
Sweet. 

1325
01:21:28,040 --> 01:21:29,680
Yeah, I'm looking forward to it.
Sweet. 

1326
01:21:29,680 --> 01:21:31,960
Well, thanks for joining me. 
Really appreciate it, Brandon, 

1327
01:21:31,960 --> 01:21:34,400
thanks for helping out in the 
comments out there too. 

1328
01:21:34,520 --> 01:21:36,600
Really, he's he's the star of 
appra. 

1329
01:21:36,600 --> 01:21:39,920
I'm just getting started. 
So cool. 

1330
01:21:40,200 --> 01:21:42,480
Well, we'll catch you next time 
with code, with code and cat and

1331
01:21:42,800 --> 01:21:43,920
thanks again, James. 
See ya see. 

1332
01:21:44,440 --> 01:21:44,520
Ya.
