Add /v1/oauth/me legacy alias for @audius/sdk <= 14#788
Merged
raymondjacobson merged 1 commit intomainfrom May 6, 2026
Merged
Conversation
The @audius/sdk versions <= 14 call /v1/oauth/me after the OAuth
token exchange and expect a flat DecodedUserToken-shaped response
(userId, name, handle, verified, sub, iat, optional profilePicture).
That endpoint was moved to /v1/me and reshaped to { data: User } in
3c800aa / d65f2a8, which broke deployed v14 clients (e.g. the
production crate.is bundle).
Restores the legacy handler at /v1/oauth/me, sharing v1Me's auth
resolution logic but formatting the response in the legacy shape so
older SDKs deserialize it correctly. New code should continue to use
/v1/me.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /v1/oauth/meas a legacy alias that returns the flatDecodedUserTokenshape expected by@audius/sdkversions <= 14/v1/meand reshaped to{ data: User }in 3c800aa / d65f2a8, which broke deployed v14 clients still calling/v1/oauth/meafter the OAuth token exchange (e.g. the production crate.is bundle, which 404s on profile fetch and surfaces "Failed to fetch user profile." to the user)v1Me's auth resolution but formats the response in the pre-3c800aa shape so older SDKs deserialize it correctly. New code should continue to use/v1/meTest plan
go build ./api/...succeeds/v1/oauth/mewith a PKCE access token, confirm response includesuserId,handle,name,verified,sub,iat/v1/mewith the same token, confirm response is unchanged ({ data: User })🤖 Generated with Claude Code