Websocket

- Continuing 42login but problem with api https://api.intra.42.fr/v2/me
This commit is contained in:
Kum1ta
2024-08-10 00:44:00 +02:00
parent 0bab70a44c
commit 3f8194ca7e
3 changed files with 38 additions and 36 deletions

View File

@ -1,31 +1,31 @@
{
"hash": "84705c79",
"configHash": "e6b0507d",
"hash": "cfc1d7ec",
"configHash": "53d5649f",
"lockfileHash": "c0b533f0",
"browserHash": "e8cce6d5",
"browserHash": "a1ea8e7b",
"optimized": {
"stats.js": {
"src": "../../stats.js/build/stats.min.js",
"file": "stats__js.js",
"fileHash": "76e64697",
"fileHash": "8aa61490",
"needsInterop": true
},
"three": {
"src": "../../three/build/three.module.js",
"file": "three.js",
"fileHash": "2c53ee09",
"fileHash": "01396a1e",
"needsInterop": false
},
"three/examples/jsm/controls/OrbitControls.js": {
"src": "../../three/examples/jsm/controls/OrbitControls.js",
"file": "three_examples_jsm_controls_OrbitControls__js.js",
"fileHash": "ed778cce",
"fileHash": "5846be4b",
"needsInterop": false
},
"three/examples/jsm/lights/RectAreaLightUniformsLib.js": {
"src": "../../three/examples/jsm/lights/RectAreaLightUniformsLib.js",
"file": "three_examples_jsm_lights_RectAreaLightUniformsLib__js.js",
"fileHash": "ca8c3839",
"fileHash": "165faab8",
"needsInterop": false
}
},

View File

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* connectedWith42.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/09 09:15:24 by edbernar #+# #+# */
/* Updated: 2024/08/09 09:18:26 by edbernar ### ########.fr */
/* Updated: 2024/08/09 23:23:46 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,9 +16,9 @@ function connectedWith42Func()
{
const token42 = window.location.search.split('code=')[1];
console.log("connectedWith42Func");
if (!token42)
return ;
sendRequest("login", {type: "by42", token: token42});
console.log(token42);
}
export { connectedWith42Func };