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

Fix/env #89

Merged
merged 3 commits into from
Sep 22, 2020
Merged

Fix/env #89

merged 3 commits into from
Sep 22, 2020

Conversation

manuelgeek
Copy link
Member

@manuelgeek manuelgeek commented Sep 22, 2020

What is the Purpose?

Fixing the Unauthorized 401 error on all APIs in sandbox

Cause
The wrapper checks for Mix.env() to determine the API to hit, either sandbox or production. However, all dependencies are compiled as :prod hence the wrapper all hit the :prod endpoint.

Solution
Removed the force-liveurlkey and addedsandboxkey to theat_ex` configs. The key is a boolean to determine whether the keys added are for sandbox or live.

Re read on the README configs to understand better

@manuelgeek manuelgeek linked an issue Sep 22, 2020 that may be closed by this pull request
@manuelgeek manuelgeek merged commit d52bcf7 into develop Sep 22, 2020
@manuelgeek manuelgeek deleted the fix/env branch September 22, 2020 19:15
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.

Getting 401 on every requests on sandbox
1 participant