> For the complete documentation index, see [llms.txt](https://angular-token.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://angular-token.gitbook.io/docs/service-methods.md).

# Service Methods

More advanced methods can be used if a higher degree of customisation is required.

## .userSignedIn()

Returns `true` if a user is signed in. It does not distinguish between user types.

```javascript
userSignedIn(): boolean
```

## .currentUserType

Returns current user type as string like specified in the options.

```javascript
get currentUserType(): string
```

## .currentUserData

Returns current user data as returned by devise token auth. This variable is `null` after page reload until the `.validateToken()` call is answerd by the backend.

```javascript
get currentUserData(): UserData
```

## .currentAuthData

Returns current authentication data which are used to set auth headers.

```javascript
get currentAuthData(): AuthData
```

## .tokenOptions

Sets or returns the current Options.

```javascript
get tokenOptions(): AngularTokenOptions

set tokenOptions(options: AngularTokenOptions)
```
