]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/oauth-model.ts
Begin support for external auths
[github/Chocobozzz/PeerTube.git] / server / lib / oauth-model.ts
index 6eb0e447320189343b97b753baa29df9784f906b..8b9975bb4c331834f50c59346bfe568553144862 100644 (file)
@@ -98,7 +98,7 @@ async function getRefreshToken (refreshToken: string) {
   return tokenInfo
 }
 
-async function getUser (usernameOrEmail: string, password: string) {
+async function getUser (usernameOrEmail?: string, password?: string) {
   const res: express.Response = this.request.res
 
   // Special treatment coming from a plugin