microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
dev

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Api/Auth/TokenResponse.cs

23lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6using Microsoft.Teams.Common.Http;
7
8namespace Microsoft.Teams.Api.Auth;
9
10public class TokenResponse : ITokenResponse
11{
12 [JsonPropertyName("token_type")]
13 [JsonPropertyOrder(0)]
14 public required string TokenType { get; set; }
15
16 [JsonPropertyName("expires_in")]
17 [JsonPropertyOrder(1)]
18 public int? ExpiresIn { get; }
19
20 [JsonPropertyName("access_token")]
21 [JsonPropertyOrder(2)]
22 public required string AccessToken { get; set; }
23}