Add account import. Add fetch accounts by device identifiers in runtime.#2474
Add account import. Add fetch accounts by device identifiers in runtime.#2474
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds two new capabilities to the Nakama runtime: (1) the ability to import account export snapshots via Go, JavaScript/TypeScript, and Lua runtime APIs, and (2) the ability to fetch accounts by device identifiers in addition to user IDs. It also bumps the nakama-common dependency to a newer pre-release version.
Changes:
AccountsGetId/accountsGetIdupdated to accept an optionaldeviceIDsparameter, with the backing SQL query updated to support device ID lookups.- New
AccountImportId/accountImportIdfunctions added across Go, JavaScript, and Lua runtimes, wrapping the existingImportAccountcore function. - Dependency bump for
github.com/heroiclabs/nakama-commontov1.44.3-0.20260304155720-c380ba5165c6.
Reviewed changes
Copilot reviewed 6 out of 9 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
server/core_account.go |
GetAccounts updated to accept deviceIDs with a new dynamic SQL query branch |
server/runtime_go_nakama.go |
AccountsGetId signature updated; AccountImportId added |
server/runtime_lua_nakama.go |
Lua accountsGetId made optional for both params; accountImportId added |
server/runtime_javascript_nakama.go |
JS accountsGetId made optional for both params; accountImportId added |
vendor/github.com/heroiclabs/nakama-common/runtime/runtime.go |
NakamaModule interface updated with new signatures |
go.mod / go.sum / vendor/modules.txt |
Dependency version bump for nakama-common |
CHANGELOG.md |
Changelog entries added for new features |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 9 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.