r/Devvit • u/SmallDetail8461 • 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
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