go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/sdk/oauth/result.go (about) 1 /* 2 3 Copyright (c) 2023 - Present. Will Charczuk. All rights reserved. 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository. 5 6 */ 7 8 package oauth 9 10 import "time" 11 12 // Result is the final result of the oauth exchange. 13 // It is the user profile of the user and the state information. 14 type Result struct { 15 Response Response 16 Profile Profile 17 State State 18 } 19 20 // Response is the response details from the oauth exchange. 21 type Response struct { 22 AccessToken string 23 TokenType string 24 RefreshToken string 25 Expiry time.Time 26 HostedDomain string 27 }