Skip to content
Snippets Groups Projects
Commit 23910b68 authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

switched google login function to fetch api instead of axios

parent 7a6793b9
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!35Fix remaining bugs
......@@ -197,9 +197,12 @@ export const fetchAllRequest = (urls, onSuccess, onError) => {
}
export const validateGoogleLoginToken = (url, config, onSuccess, onError) => {
const newHeaders = new Headers(config.headers)
fetch((`${apiUrl}${url}`), {
method : 'POST',
headers : JSON.stringify(config)
method : 'GET',
headers : newHeaders
})
.then(response => {
const auth_headers = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment