Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I'm having ideas for a mod which implements the Mojang API, but needs to be authenticated. In order to make an user requests to the API, I need the access token. Creating an access token cancels out any existing ones, including the current user's session, effectively logging them. Is there any way to simply use the existing one generated on launcher startup? It should be in Minecraft somewhere, I just don't know where.

  • Author
3 hours ago, diesieben07 said:

Minecraft::session.

Well, my fault for not looking long enough. That's what I'm looking for!

Probably don't know, but is the Session.getToken() an access token or a client token?

  • Author
2 minutes ago, diesieben07 said:

It's the authentication token.

So... The access token? The access token is used directly with Mojang's API to change things like the skin, while the client token is used to gain access to the access token as well as basic user info.

  • Author
4 minutes ago, diesieben07 said:

It's the access token, which is called authentication token in the code.

The client token is only used in the launcher to log you in.

Right, that's great then.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.