Documentation ¶
Index ¶
- func CheckAccessToken(req *refreshTokenProto.TokenRequest) (*jwtClaims.AccessToken, error)
- func CheckRefreshToken(req *refreshTokenProto.TokenRequest) (*jwtClaims.RefreshToken, error)
- func CheckSignature(req *refreshTokenProto.TokenRequest) error
- func NewRpc() *grpc.Server
- type Server
- func (s *Server) DestroyRefreshToken(ctx context.Context, req *refreshTokenProto.TokenRequest) (*emptypb.Empty, error)
- func (s *Server) GetUserInfo(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.UserInfo, error)
- func (s *Server) RefreshToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessToken, error)
- func (s *Server) VerifyAccessToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessTokenInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccessToken ¶ added in v1.17.44
func CheckAccessToken(req *refreshTokenProto.TokenRequest) (*jwtClaims.AccessToken, error)
func CheckRefreshToken ¶ added in v1.17.44
func CheckRefreshToken(req *refreshTokenProto.TokenRequest) (*jwtClaims.RefreshToken, error)
func CheckSignature ¶ added in v1.17.44
func CheckSignature(req *refreshTokenProto.TokenRequest) error
Types ¶
type Server ¶
type Server struct {
refreshTokenProto.UnimplementedRefreshTokenServer
}
func (*Server) DestroyRefreshToken ¶
func (s *Server) DestroyRefreshToken(ctx context.Context, req *refreshTokenProto.TokenRequest) (*emptypb.Empty, error)
func (*Server) GetUserInfo ¶ added in v1.17.27
func (s *Server) GetUserInfo(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.UserInfo, error)
func (*Server) RefreshToken ¶
func (s *Server) RefreshToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessToken, error)
func (*Server) VerifyAccessToken ¶
func (s *Server) VerifyAccessToken(_ context.Context, req *refreshTokenProto.TokenRequest) (*refreshTokenProto.AccessTokenInfo, error)
Click to show internal directories.
Click to hide internal directories.