backend for xcvr appview
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

save session on conflict

+14 -1
+14 -1
server/internal/db/oauth.go
··· 61 61 dpop_authserver_nonce, 62 62 dpop_host_nonce, 63 63 dpop_privatekey_multibase 64 - ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)`, 64 + ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) 65 + ON CONFLICT (session_id) 66 + DO UPDATE SET 67 + account_did = EXCLUDED.account_did, 68 + host_url = EXCLUDED.host_url, 69 + authserver_url = EXCLUDED.authserver_url, 70 + authserver_token_endpoint = EXCLUDED.host_url, 71 + scopes = EXCLUDED.scopes, 72 + access_token = EXCLUDED.access_token, 73 + refresh_token = EXCLUDED.refresh_token, 74 + dpop_authserver_nonce = EXCLUDED.dpop_authserver_nonce, 75 + dpop_host_nonce = EXCLUDED.dpop_host_nonce, 76 + dpop_privatekey_multibase = EXCLUDED.privatekey_multibase 77 + `, 65 78 sess.SessionID, 66 79 sess.AccountDID.String(), 67 80 sess.HostURL,