Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Invalid token provided" error is masked #188

Closed
kamilkisiela opened this issue Jun 27, 2022 · 1 comment · Fixed by #201
Closed

"Invalid token provided" error is masked #188

kamilkisiela opened this issue Jun 27, 2022 · 1 comment · Fixed by #201

Comments

@kamilkisiela
Copy link
Owner

The error looks fine

throw new HiveError('Invalid token provided!');
but GraphQL Yoga masks it for some reason.

Context #187

@kamilkisiela
Copy link
Owner Author

const [organization, project, target] = await Promise.all([
injector.get(OrganizationManager).getOrganizationIdByToken(),
injector.get(ProjectManager).getProjectIdByToken(),
injector.get(TargetManager).getTargetIdByToken(),
]);

->
const { organization } = await this.tokenStorage.getToken({

->
throw new HiveError('Invalid token provided!');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant