returning account guid in attach request

This commit is contained in:
Roland Osborne 2022-09-12 23:59:16 -07:00
parent 3611530f11
commit 91e7a242f2
3 changed files with 6 additions and 0 deletions

View File

@ -3230,9 +3230,12 @@ components:
LoginAccess {
type: object
required:
- guid
- appToken
- created
properties:
guid:
type: string
appToken:
type: string
created:

View File

@ -55,6 +55,7 @@ func AddAccountApp(w http.ResponseWriter, r *http.Request) {
}
login := LoginAccess{
GUID: account.GUID,
AppToken: account.GUID + "." + access,
Created: app.Created,
}

View File

@ -318,6 +318,8 @@ type IDList struct {
//LoginAccess response object when app is associated
type LoginAccess struct {
GUID string `json:"guid"`
AppToken string `json:"appToken"`
Created int64 `json:"created"`