# `src auth token`

prints the current authentication token or Authorization header.

Print the current authentication token.

Use --header to print a complete Authorization header instead.

Examples:

Raw token output:

$ src auth token
sgp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Authorization header output:

$ src auth token --header
Authorization: token sgp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

If you are authenticated with OAuth instead of SRC_ACCESS_TOKEN, the header uses the Bearer scheme:

$ src auth token --header
Authorization: Bearer eyJhbGciOi...

## Usage

```sh
$ src auth token [options]
```

## Flags

| Name | Description | Default Value |
|------|-------------|---------------|
| `--header` | print the token as an Authorization header | `false`|