HomeJavaModsDevAuth Neo
DevAuth Neo
ModsJava

DevAuth Neo

by litetex · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.1.2–26.2⬇ Download for 26.1–26.1.1⬇ Download for 1.21.11
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Authenticate Minecraft accounts in development environments.

This is a "reincarnation" of DevAuth but improved, updated and available directly as a Fabric mod.

Usage

Adding the mod

via Maven Central (default)

Add the following to build.gradle:

dependencies {
    localRuntime 'net.litetex.mcm:dev-auth-neo:<version>'
    // Further documentation: https://wiki.fabricmc.net/documentation:fabric_loom
}
via Modrinth

Add the following to build.gradle:

repositories {
    // https://support.modrinth.com/en/articles/8801191-modrinth-maven
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup 'maven.modrinth'
        }
    }
}

dependencies {
    localRuntime 'maven.modrinth:dev-auth-neo:<version>'
    // Further documentation: https://wiki.fabricmc.net/documentation:fabric_loom
}

Quickstart

IMPORTANT: DevAuth is disabled by default, in order to be unobtrusive.
The simplest way to enable it is by setting the corresponding system property: -Ddevauth.enabled=1

Configuration

The configuration is dynamically loaded from (sorted by highest priority) Full list of configuration options

General

Property Type Default Notes
enabled bool false
account String - If not set:
Will be prompted via the console
account-type String microsoft Currently only Microsoft is supported
force-handle-all-tokens-as-expired bool false Handles all existing tokens as if they have expired and refreshes them
state-dir String Automatically determined
~/.dev-auth-neo)
The directory where the login information of the provider will be saved
cache-profile-info-minutes int 360
6h
How long should fetched profile information(uuid and name) be cached?

Microsoft Grant-Flow options

NOTE: All grant-flow options are additionally prefixed with microsoft.oauth2.
For example predefined-provider must therefore be defined as devauth.microsoft.oauth2.predefined-provider

Property Type Default Notes
grant-flow String auth-code-embedded See bellow for available flows
client-id String automatically determined Designed as general purpose override for e.g. a custom provider
scopes List<String> automatically determined

auth-code-embedded Auth Code flow using an embedded browser

Property Type Default Notes
use-temporary-cache-dir bool true Creates and uses a temporary directory for the browser cache.
If this is set to false all browser information (cookies, cache) and also possible logins will be persisted!
redirect-uri String automatically determined Designed as general purpose override for e.g. a custom provider

auth-code-external Auth Code flow using an external browser

Property Type Default Notes
predefined-provider String devauth
open-system-browser bool true Should the system browser be automatically opened with the sign in page?
redirect-port int automatically determined Port used for the integrated webserver
redirect-uri String automatically determined Designed as general purpose override for e.g. a custom provider

device-code Device Code flow

Property Type Default Notes
predefined-provider String multimc

FAQ

How do I delete the login information?

Delete %USERPROFILE%\.dev-auth-neo (Windows) or ~/.dev-auth-neo (Linux)

I want to switch to another account

What's the easiest way to do this?

Set -Ddevauth.account=otherAccountName

Security?

The tokens are stored in a file on the disk in above specified folder. As with all data on your PC, you as a user are responsible for keeping them secure.

You can revoke tokens in the Microsoft account settings.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more