Monkie
Monkie
Explore posts from servers
SIASapphire - Imagine a framework
Created by Monkie on 1/22/2025 in #sapphire-support
api auth via expo
so i am using api plugin and trying to auth with expo but i get an error browser error
{ error: "Failed to fetch the token." }
{ error: "Failed to fetch the token." }
bot log error

2025-01-22 19:27:12 - ERROR - {
2025-01-22 19:27:12 - ERROR - error: 'invalid_request',
2025-01-22 19:27:12 - ERROR - error_description: 'Missing "code_verifier"'
2025-01-22 19:27:12 - ERROR - }

2025-01-22 19:27:12 - ERROR - {
2025-01-22 19:27:12 - ERROR - error: 'invalid_request',
2025-01-22 19:27:12 - ERROR - error_description: 'Missing "code_verifier"'
2025-01-22 19:27:12 - ERROR - }
i followed the docs for the back end part so have
api: {
auth: {
id: envParseString('CLIENT_ID'),
secret: envParseString('CLIENT_SECRET'),
cookie: envParseString('AUTH_COOKIE_NAME'),
redirect: envParseString('REDIRECT_URI'),
scopes: [OAuth2Scopes.Identify, OAuth2Scopes.Guilds],
transformers: [],
domainOverwrite: isDev() ? '127.0.0.1' : undefined,
},
prefix: 'api',
listenOptions: {
port: envParseNumber('PORT', 3000),
},
},
api: {
auth: {
id: envParseString('CLIENT_ID'),
secret: envParseString('CLIENT_SECRET'),
cookie: envParseString('AUTH_COOKIE_NAME'),
redirect: envParseString('REDIRECT_URI'),
scopes: [OAuth2Scopes.Identify, OAuth2Scopes.Guilds],
transformers: [],
domainOverwrite: isDev() ? '127.0.0.1' : undefined,
},
prefix: 'api',
listenOptions: {
port: envParseNumber('PORT', 3000),
},
},
8 replies