Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 9c03df3

Browse files
committed
chore: rename users.authenticate_user (#66)
chore: rename users.authenticate_user feat: update readme
1 parent 2f15035 commit 9c03df3

14 files changed

+43
-12
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.png binary

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Open Game Backend Registry
2+
3+
This repository serves the default registry for Open Game Backend.
4+
5+
See the [OpenGB Engine repository](https://github.com/rivet-gg/opengb.git) for more information.
6+
7+
## Documentation
8+
9+
- [Quickstart](http://opengb.dev/concepts/quickstart)
10+
- [All available modules](http://opengb.dev/modules)
11+
- [Building modules](https://opengb.dev/build/crash-course)
12+
- [OpenGB Engine internals](http://opengb.dev/engine/introduction)
13+
- Visit [opengb.dev](http://opengb.dev/introduction) for more
14+
15+
## Looking for the Open Game Backend Engine?
16+
17+
See [rivet-gg/opengb](https://github.com/rivet-gg/opengb.git).
18+
19+
## Support
20+
21+
**Community**
22+
23+
[Create a GitHub issue](https://github.com/rivet-gg/opengb/issues) or [join our Discord](https://rivet.gg/discord).
24+
25+
**Enterprise**
26+
27+
The following companies provide enterprise support & custom modules for Open Game Backend:
28+
29+
- [Rivet](https://rivet.gg/support)
30+
- _Create a PR to list your services for Open Game Backend_

modules/auth/scripts/auth_email_passwordless.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function run(
2222
// Fetch existing user if session token is provided
2323
let userId: string | undefined;
2424
if (req.userToken) {
25-
const { userId } = await ctx.modules.users.validateUserToken({
25+
const { userId } = await ctx.modules.users.authenticateUser({
2626
userToken: req.userToken,
2727
});
2828

modules/currency/scripts/get_balance_by_token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function run(
1515
): Promise<Response> {
1616
await ctx.modules.rateLimit.throttlePublic({ requests: 25 });
1717

18-
const { userId } = await ctx.modules.users.validateUserToken({
18+
const { userId } = await ctx.modules.users.authenticateUser({
1919
userToken: req.userToken,
2020
});
2121
const { balance } = await ctx.modules.currency.getBalance({ userId });

modules/friends/scripts/accept_request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function run(
1313
): Promise<Response> {
1414
await ctx.modules.rateLimit.throttlePublic({ requests: 50 });
1515

16-
const { userId } = await ctx.modules.users.validateUserToken({
16+
const { userId } = await ctx.modules.users.authenticateUser({
1717
userToken: req.userToken,
1818
});
1919

modules/friends/scripts/decline_request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function run(
1616
): Promise<Response> {
1717
await ctx.modules.rateLimit.throttlePublic({ requests: 50 });
1818

19-
const { userId } = await ctx.modules.users.validateUserToken({
19+
const { userId } = await ctx.modules.users.authenticateUser({
2020
userToken: req.userToken,
2121
});
2222

modules/friends/scripts/list_friends.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function run(
1515
): Promise<Response> {
1616
await ctx.modules.rateLimit.throttlePublic({ requests: 50 });
1717

18-
const { userId } = await ctx.modules.users.validateUserToken({
18+
const { userId } = await ctx.modules.users.authenticateUser({
1919
userToken: req.userToken,
2020
});
2121

modules/friends/scripts/list_incoming_friend_requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function run(
1515
): Promise<Response> {
1616
await ctx.modules.rateLimit.throttlePublic({ requests: 50 });
1717

18-
const { userId } = await ctx.modules.users.validateUserToken({
18+
const { userId } = await ctx.modules.users.authenticateUser({
1919
userToken: req.userToken,
2020
});
2121

modules/friends/scripts/list_outgoing_friend_requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function run(
1515
): Promise<Response> {
1616
await ctx.modules.rateLimit.throttlePublic({});
1717

18-
const { userId } = await ctx.modules.users.validateUserToken({
18+
const { userId } = await ctx.modules.users.authenticateUser({
1919
userToken: req.userToken,
2020
});
2121

modules/friends/scripts/remove_friend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function run(
1313
): Promise<Response> {
1414
await ctx.modules.rateLimit.throttlePublic({ requests: 50 });
1515

16-
const { userId } = await ctx.modules.users.validateUserToken({
16+
const { userId } = await ctx.modules.users.authenticateUser({
1717
userToken: req.userToken,
1818
});
1919

0 commit comments

Comments
 (0)