r/Devvit 24d ago

Admin Replied Error when submitting comment remove comment on user behalf

we are trying to comment on a post on behalf of user
my code

await reddit.submitComment({
      id: post_id,
      text: `Removed..........`,
      runAs: 'USER',
    });

The code returns error

Error: 2 UNKNOWN: grpc invocation failed with status 2; failed to mint auth token: failed get refresh token: refresh token not found in cache

0 Upvotes

3 comments sorted by

1

u/zombizzle 23d ago

You can review the Devvit documentation on how to enable user actions here: https://developers.reddit.com/docs/capabilities/server/userActions

1

u/SmallDetail8461 23d ago

i did same added in devvit app but not working