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

feat: index assets contracts #576

Merged
merged 9 commits into from
Sep 24, 2024
Merged

Conversation

rodrigobranas
Copy link
Member

@rodrigobranas rodrigobranas commented Sep 23, 2024

arthurgeron
arthurgeron previously approved these changes Sep 24, 2024
Copy link
Contributor

@arthurgeron arthurgeron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great stuff

};

export class GraphQLContextFactory {
static async create(req: Request): Promise<GraphQLContext> {
logger.info('GraphQLContextFactory.create');
let isAuthenticated = true;
const secret = env.get('SERVER_API_KEY');
const bearer = `Bearer ${secret}`;
const token =
req.headers.get('x-api-key') || req.headers.get('Authorization');
if (!token || token !== bearer) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a const!

@rodrigobranas rodrigobranas merged commit dc9eff6 into main Sep 24, 2024
8 checks passed
@rodrigobranas rodrigobranas deleted the rb/feat/index-assets-contracts branch September 24, 2024 21:28
raghukapur9 pushed a commit to DevForce99/fuel-explorer that referenced this pull request Sep 25, 2024
raghukapur9 pushed a commit to DevForce99/fuel-explorer that referenced this pull request Sep 25, 2024
raghukapur9 pushed a commit to DevForce99/fuel-explorer that referenced this pull request Sep 25, 2024
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 this pull request may close these issues.

Index assets and contracts
2 participants