---
title: "RefreshToken"
canonical: "https://docs.dk.is/space/DEV/10354709/RefreshToken"
format: markdown
---
This function is used to generate a new MasterToken that will be used to communicate with the service  
the new MasterToken is the only token that can then be used to call the RefreshToken function

## Parameters

Used to call the function

1. Token - [TToken](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10354737)

## Returns

Returns the following

- [TToken](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10354737)

 

> ℹ️ NOTE: Tokens are valid for 5 day´s after that time the token will no longer be able to communicate with the service   
> ℹ️ with the exception of the MasterToken that can be used in this function only.

## Related articles



> Macro (contentbylabel)

> Macro (details)
> 
> | **Related issues** |  |
> | --- | --- |