mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-27 10:00:27 +01:00
@@ -96,7 +96,7 @@ export default class AuthController {
|
|||||||
const githubUser = await github.user()
|
const githubUser = await github.user()
|
||||||
const user = await this.createUser(githubUser)
|
const user = await this.createUser(githubUser)
|
||||||
await auth.use('web').login(user, true)
|
await auth.use('web').login(user, true)
|
||||||
return response.status(200).send({
|
return response.header('Access-Control-Allow-Origin', '*').status(200).send({
|
||||||
user: user
|
user: user
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user