#philip-apps-permissions
1 messages ยท Page 1 of 1 (latest)
Hey there, the way you asked this make me suspect you were able to work around these issues, but there are problems with the docs snippets. Is that the case, or are you blocked because of these issues?
Hey @restive crescent , thanks for following up. Yes, I'm still blocked by these issues. I just ran into them today.
I just wanted to point out that I'm following the code examples because it's totally possible the error is my fault (maybe a sandbox environment issue?). But I am getting these errors specifically from lines copied from the examples.
philip-apps-permissions
๐ bear with me I have never even heard of those docs before and I know nothing about React at all ๐
Do you have a simple repro?
No worries! I'm also just getting familiar with React too. I know that the Stripe Apps stuff is new. Sorry for the delay, I hadn't created a repo but just did: https://github.com/philipalexander/friendzy
Hi @modest sundial I'm jumping in to take a look while my colleague is busy. Thanks for the GH link, I'll take a look
First Q: Are you hitting these errors while running the stripe-ap.dev.json manifest?
Yeah, I'm seeing these errors while running this test sandbox in my Stripe Dashboard. And yes, that sandbox uses the stripe-app.dev.json manifest I believe.
That will be what is used if you run this command to start the local sandbox: stripe apps start --manifest stripe-app.dev.json
Ah ok! I wasn't using that then, I was just starting with stripe apps start
Okay so let's start right there. Try using the command that specifies the .dev.json manifest and see if you hit the same errors.
Will do! starting that now
Thanks! I'm still looking through the rest of your code.
Ok yep! That enabled an error messaged that lead me to the solution. I had an empty string for an earlier permission grant description.
Woohoo! ๐
I knew it was going to be my fault somewhere ๐
It sounds like we could do a better job at catching that situation earlier though.
I'm seeing if I get a better error message for the other issue....
The error messages you posted above look scary and confusing
Ah, so we have resolved the Secret permissions so far, no word yet on the OAuth?
Yes, the secret permission issue was just my grant descriptions, the OAuth issue is still giving me Uncaught TypeError: Cannot read properties of undefined (reading 'errorStacks')
Seems to be triggered from line 43 of this file: https://github.com/philipalexander/friendzy/blob/main/src/views/AppSettings.tsx
Okay yeah that's the line I was looking at
So you are implementing your own OAuth at https://auth.friendzy.com/ correct?
Yes, that's correct.
And you are returning the expected payload following the Proof Key for Code Exchange https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-proof-key-for-code-exchange-pkce?
I'm thinking this is actually an error with the way I'm using the provided SignInView from @stripe/ui-extension-sdk/ui. I wasn't able to find a type def for this and I think that might be the issue.
This is a pretty complex flow to get running. We have some examples apps in our public GitHub repo for Stripe Apps. We have one that uses this flow but uses Github as the OAuth provider. It might have some useful code examples for you.
https://github.com/stripe/stripe-apps/tree/main/examples/github-oauth
Yeah, this is great actually! I did just verify that the issue is something that I'm getting wrong with how I'm trying to implement SignInView so I'll be able to figure it out. I'll take a look at these docs and go from there!
Thanks so much for your help!
I'm glad we got you unblocked! ๐