1. Basic (no secondary navigation)

Nunjucks code

         {{ govukOneLoginServiceHeader({ signOutLink: "/test"}) }} 
        

2. With Welsh translation for the "Sign out" link

Nunjucks code

        
          {{ govukOneLoginServiceHeader({
            lng: "cy"
          })}}
        
        

The code above is for reference for Nunjucks users only – if you do not use Nunjucks in your service please follow the instructions to copy the header into your service.

4. With "Sign out" form

Nunjucks code

        
          {{ govukOneLoginServiceHeader({
            signOutFormAction: "/test-form-action",
            signOutFormHiddenInputsHtml: '<input type="hidden" name="csrfToken" value="exampleCsrfToken12345">'
          })}}
        
        

The code above is for reference for Nunjucks users only – if you do not use Nunjucks in your service please follow the instructions to copy the header into your service.