Max
1
Currently I only receive the credential object when I sign in withToken,
<DamlHubLogin withToken withButton onLogin={(credential, error) => {
console.log(credential)
if(credential){
login({token: credential.token, ledgerId: credential.ledgerId, party: credential.party})
}
}}/>
I don’t receive anything if I sign in with button though, nothing logs, is that intended?
Hi @Max ,
Do you get anything when you log the error object?
Max
3
When I login with JWT, everything logs

When I login withButton,
it seems onLogin isn’t even called as I don’t see any logs
<DamlHubLogin withToken withButton onLogin={(credential, error) => {
console.log('logincallback', 'credential',credential, 'error', error)
if(error){
console.log(error)
}
if(credential){
login({token: credential.token, ledgerId: credential.ledgerId, party: credential.party})
}
}}/>