syntax = "proto3";

package devvit.plugin_svc.userauth;

import "devvit/plugin_svc/userauth/userauth_msg.proto";

option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/plugin_svc/userauth";
option java_package = "com.reddit.devvit.plugin_svc.userauth";

// UserAuth supports functionality for user-specific OAuth refresh tokens.
service UserAuth {
  // EnsureRefreshTokenExists checks the shared refresh-token cache for the
  // given user and, if absent, may mint a fresh refresh token. Intended to be invoked from a
  // context that carries the user's verified edge context.
  rpc EnsureRefreshTokenExists(EnsureRefreshTokenExistsRequest) returns (EnsureRefreshTokenExistsResponse);
}
