---
title: "Class OAuthRefreshTokenGrant"
slug: "web-sdk--stylelabs.m.sdk.webclient.authentication.oauthrefreshtokengrant"
abstract: ""
---
# Class OAuthRefreshTokenGrant

Access tokens eventually expire; however some grants respond with a refresh token which enables the client to get a new access token without requiring the user to be redirected.

## Inheritance

object

OAuthRefreshTokenGrant

## Implements

[IOAuthGrant](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.authentication.ioauthgrant.html)

## Namespace: StylelabsStylelabs.MSdkWebClientAuthentication

## Assembly: Stylelabs.M.Sdk.WebClient.dll

## Syntax

```csharp
public class OAuthRefreshTokenGrant : IOAuthGrant
```

## Remarks

For more information see: [https://alexbilbie.com/guide-to-oauth-2-grants/](https://alexbilbie.com/guide-to-oauth-2-grants/).

## Properties

### ClientId

Gets or sets the client id.

#### Declaration

```csharp
public string ClientId { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### ClientSecret

Gets or sets the client secret.

#### Declaration

```csharp
public string ClientSecret { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### RefreshToken

Gets or sets a refresh token that can be used to acquire a new access token when the original expires.

#### Declaration

```csharp
public string RefreshToken { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### Implements

[IOAuthGrant](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.authentication.ioauthgrant.html)
