There is a problem in the call repository with the proposed solution for use server.auth.test(). Like this:
request.server.auth.test('strategy-name', request, (err, credentials) => {
if (err) {
return reply({ error: 'Cannot find your credentials' })
}
return reply({ status: true, user: credentials.name })
})
Hope this helps and gives direction :)
source
share