// Returns unauthenticated error if no account id is available
Returns unauthenticated error if no account id is available
// Returns unauthenticated error if no account id is available
func AccountIDFromContext(c context.Context) (id.AccountID, error) {
	v := c.Value(accountIDKey{})
	aid, ok := v.(id.AccountID)
	if !ok {
		return "", status.Error(codes.Unauthenticated, "")
	}
	return aid, nil
}
func AccountIDFromContext ( c context . Context ) ( id . AccountID , error ) { v := c . Value ( accountIDKey { } ) aid , ok := v . ( id . AccountID ) if ! ok { return " " , status . Error ( codes . Unauthenticated , " " ) } return aid , nil }
Returns unauthenticated error if no account id is available
Returns unauthenticated error if no account id is available