MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / authUserActor

Method authUserActor

internal/api/grpc.go:90–98  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

88}
89
90func (s *GrpcServer) authUserActor(ctx context.Context) (*accesscontrol.Actor, error) {
91 md, ok := metadata.FromIncomingContext(ctx)
92 if !ok {
93 return nil, shared.ErrInternal("failed to get metadata")
94 }
95
96 token := metadatautil.GetAuthToken(md)
97 return parseUserActor(ctx, token, s.userService)
98}
99
100func NewGrpcServer(
101 userService *services.UserService,

Callers 2

Calls 2

GetAuthTokenFunction · 0.92
parseUserActorFunction · 0.85

Tested by

no test coverage detected