Closed kaf-lamed-beyt closed 1 month ago
Looks good!
I'm having a blocker when trying to persist the state, via the callback
Are there any errors in your logs when the callback is invoked?
Yeah, there were. Something around the function create_or_update_youtube_identity
not being defined. Hold on. I'll share a screenshot.
Here @zcesur
We need to define the changeset we're using in the callback, see lib/algora/accounts/identity.ex
Oh okay! I'll do that now.
Had a couple of issues with retrieving the provider value. Apparently, Ueberauth returns the value as an atom. I had to convert it so it matches the "identities"
schema.
Clicking on the button when an account is connected automatically disconnects that identity. Is this a good thing to do?
I've got a slight issue with the placement of the button though. Although, I added a margin, it did not align the button correctly. PS: the other button doesn't show up when it is connected.
This might be confusing so let's remove that logic
Alright, I'll have this removed.
So, a little update here @zcesur.
Yes. the scopes were not exactly correct. So I've updated it, and now the OAuth screen shows this properly. .
The refresh_token
property returns a value now — instead of nil.
I added a dummy function to update the Google token... basically just followed your approach in /lib/algora/accounts.ex
.But I realized that I might have to implement something similar to the one here for Restream 👇🏼
Would that be something I need to get into? If yes, perhaps, a little guidance, thanks.
The
refresh_token
property returns a value now — instead of nil.
Perfect
But I realized that I might have to implement something similar to the one here for Restream
Yeah we need this for offline access (viewing analytics, uploading clips etc). It's pretty much the same as refreshing Restream tokens, check out the docs here
Awesome! I'll check the docs out.
@zcesur, i added the refresh_token
function now. When you can, please a look and let me know if I'm on the right path.
Thanks Caleb!
Thanks Caleb!
Ayy! Glad I got to work on this. 🫡
@zcesur, I've been able to setup the OAuth flow with Ueberauth, but I'm having a blocker when trying to persist the state, via the callback.
Kindly take a look and let me know where I might be doing something wrong.
Settings UI on Algora
OAuth screen
/claim #104