# writeSocialLoginAuth(id, controller, serviceEndpoint, verificationMethod)

<table data-header-hidden><thead><tr><th width="146.5"></th><th></th></tr></thead><tbody><tr><td>Feature</td><td>Return authentication in type 'social login', an item in the did document. <mark style="color:red;"><strong><code>verificationMethod</code></strong><strong> </strong><strong>is authentication ID of verifier who will verify the social login.</strong></mark></td></tr><tr><td>Parameters</td><td><code>string</code> authentication id,            // did string + “#” + unique id <br><code>string</code> controller, // did string <br><code>string</code> serviceEndpoint, <br><code>string</code> verificationMethod         // did string + “#” + unique id  </td></tr><tr><td>Return Value</td><td><code>object</code> authentication for social login</td></tr></tbody></table>

```jsx
const did = "did:mitum:0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca";
const id = did + "#social_login2";
const controller = did;
const endpoint = "http://localhost:3000";
const verificationMethod = "did:mitum:0xF032496440AC975D383C459D6C830186D2C0EaE9fca#auth_key";
const authentication = mitum.authdid.writeSocialLoginAuth(id, controller, endpoint, verificationMethod);

console.log(authentication);
console.log(authentication.toHintedObejct());

//output1
{
  _hint: 'mitum-did-social-login-authentication-v0.0.1',
  id: 'did:mitum:0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca#social_login2',
  authType: 'VerifiableCredential',
  controller: 'did:mitum:0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca',
  serviceEndpoint: 'http://localhost:3000',
  proof: {
    verificationMethod: 'did:mitum:0xF032496440AC975D383C459D6C830186D2C0EaE9fca#auth_key'
  }
}
```
