Feathersjs link or unlink existing account (accessToken) oauth login

86 Views Asked by At

Is there a way to link or unlink existing account (accessToken) oauth login to feathersjs

1

There are 1 best solutions below

3
Daff On

This is described in the account linking API documentation and can be done by sending the existing access token in the feathers_token query parameter:

<a href="/oauth/github?feathers_token=<your access token>">
  Login with GitHub
</a>

To unlink and account you would set the <name>Id property on the user to null.