You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
artanisdesign
changed the title
@auth directive - role based auth expression with tokens doesnt work.
data-connect @auth directive - role based auth expression with tokens doesnt work.
Nov 13, 2024
artanisdesign
changed the title
data-connect @auth directive - role based auth expression with tokens doesnt work.
dataconnect @auth directive - role based auth expression with tokens doesnt work.
Nov 13, 2024
Thanks for the report @artanisdesign. It looks like the error only occurs when running the mutation locally. I tried performing the mutation on a production environment and it does not raise any errors. I'll raise this to our engineering team to see what we can do here.
hi @aalej yea, i noticed that part - it only occurs locally-, its in the original issue too. while from admin or console i can do it, i cant deploy the named mutation to do console.. so obviously i cant use that from my client code.
Hey @artanisdesign - thanks for reporting this and apologies for the inconvenience. This should be fixed by #7968, which will go out in the next release this afternoon.
Great, thanks!On 2024. Nov 19., at 19:24, joehan ***@***.***> wrote:
Hey @artanisdesign - thanks for reporting this and apologies for the inconvenience. This should be fixed by #7968, which will go out in the next release this afternoon.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
Environment info
firebase-tools: 13.25.0
**Platform: mac **
Test case
mutation createItem( $title: String! ) @auth(expr: "auth.token.isAdmin == true") { item_insert( data: { title: $title } ) }
Steps to reproduce
I run this mutation locally from data connect execution, where i do set authentication and variables too.
Expected behavior
add item only when my role is admin.
Actual behavior
weird error:
that only happens locally. but because of this error i can not deploy to production.
The text was updated successfully, but these errors were encountered: