#philip-apps-permissions

1 messages ยท Page 1 of 1 (latest)

cobalt owlBOT
restive crescent
#

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?

modest sundial
#

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.

cobalt owlBOT
west raft
#

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?

modest sundial
narrow schooner
#

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?

modest sundial
#

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.

narrow schooner
#

That will be what is used if you run this command to start the local sandbox: stripe apps start --manifest stripe-app.dev.json

modest sundial
#

Ah ok! I wasn't using that then, I was just starting with stripe apps start

narrow schooner
#

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.

modest sundial
#

Will do! starting that now

narrow schooner
#

Thanks! I'm still looking through the rest of your code.

modest sundial
#

Ok yep! That enabled an error messaged that lead me to the solution. I had an empty string for an earlier permission grant description.

narrow schooner
#

Woohoo! ๐ŸŽ‰

modest sundial
#

I knew it was going to be my fault somewhere ๐Ÿ™‚

narrow schooner
#

It sounds like we could do a better job at catching that situation earlier though.

modest sundial
#

I'm seeing if I get a better error message for the other issue....

narrow schooner
#

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?

modest sundial
#

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')

narrow schooner
#

Okay yeah that's the line I was looking at

#

So you are implementing your own OAuth at https://auth.friendzy.com/ correct?

modest sundial
#

Yes, that's correct.

narrow schooner
modest sundial
#

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.

narrow schooner
modest sundial
#

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!

narrow schooner
#

I'm glad we got you unblocked! ๐Ÿ™‚