mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
⭐ feat(api): Connect Steam to main user account (#262)
## Description This attempts to connect the Steam account to user account... for easier management <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced user profiles and account views now display integrated Steam account details and enriched team associations for a more comprehensive experience. - **Chores** - Backend and database refinements have been implemented to improve system stability, data integrity, and overall performance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -49,7 +49,7 @@ export namespace AccountApi {
|
||||
"User not found",
|
||||
);
|
||||
|
||||
const { id, email, name, polarCustomerID, avatarUrl, discriminator } = currentUser
|
||||
const { id, email, name, polarCustomerID, avatarUrl, discriminator, steamAccounts } = currentUser
|
||||
|
||||
return c.json({
|
||||
data: {
|
||||
@@ -58,6 +58,7 @@ export namespace AccountApi {
|
||||
email,
|
||||
teams,
|
||||
avatarUrl,
|
||||
steamAccounts,
|
||||
discriminator,
|
||||
polarCustomerID,
|
||||
}
|
||||
|
||||
@@ -28,7 +28,13 @@ type OauthUser = {
|
||||
console.log("STORAGE", process.env.STORAGE)
|
||||
|
||||
const app = issuer({
|
||||
select: Select(),
|
||||
select: Select({
|
||||
providers: {
|
||||
machine: {
|
||||
hide: true
|
||||
}
|
||||
}
|
||||
}),
|
||||
//TODO: Create our own Storage
|
||||
storage: MemoryStorage({
|
||||
persist: process.env.STORAGE //"/tmp/persist.json",
|
||||
@@ -122,7 +128,7 @@ const app = issuer({
|
||||
longitude
|
||||
},
|
||||
//FIXME: Make this better
|
||||
userID: null
|
||||
// userID: null
|
||||
})
|
||||
return ctx.subject("machine", {
|
||||
machineID,
|
||||
|
||||
Reference in New Issue
Block a user