dan—1106
dan—1106
Explore posts from servers
BABetter Auth
Created by dan—1106 on 4/9/2025 in #help
User avatars/profile pics for Microsoft Entra social sign in
thanks @Ping ! Appreciate all the advice!
14 replies
BABetter Auth
Created by dan—1106 on 4/9/2025 in #help
User avatars/profile pics for Microsoft Entra social sign in
I've run into a related problem: The avatar image is returned as a base 64 encoded image, not a URL. This causes session caching to break: [BetterAuthError: Session data is too large to store in the cookie. Please disable session cookie caching or reduce the size of the session data] Apart from turning off session caching, are there any workarounds you can think of?
14 replies
BABetter Auth
Created by dan—1106 on 4/9/2025 in #help
User avatars/profile pics for Microsoft Entra social sign in
So I've partially solved it. I've confirmed scope: ["User.ReadBasic.All"] is correct, but the image doesn't provide the placeholder you see in microsoft apps if an avatar isn't explicitly set.
14 replies
BABetter Auth
Created by dan—1106 on 4/9/2025 in #help
User avatars/profile pics for Microsoft Entra social sign in
ok, thanks for the advice will try to track it down
14 replies
BABetter Auth
Created by dan—1106 on 4/9/2025 in #help
User avatars/profile pics for Microsoft Entra social sign in
thanks for taking a look! I've obfuscated some fields, but there's no image URL in the returned value. Any suggestions on how to make sure it's there? { ver: '2.0', iss: 'https://login.microsoftonline.com/9188040d-***-4c5b-b112-36a304b66dad/v2.0', sub: 'AAAAAAAAAAAAAAAAAAAAAXOo2eF3xdF8', aud: '2363d37a-48ad-467e--1c3dd92fc577', exp: 1744312069, iat: 1744225369, nbf: 1744225369, name: 'xxxx', preferred_username: '16509606656', oid: '00000000-0000-0000-*-8cc4b6c95b8a', email: '[email protected]', tid: '9188040d-6c67-4c5b--36a304b66dad', aio: 'Dlmws2fyx5bUAlu!0N72lJE8Gk**' }
14 replies
PPrisma
Created by dan—1106 on 2/24/2025 in #help-and-questions
Easiest way to investigate a slow Prisma D1 query?
ah, I found the issue. Each query is taking 70ms and prisma is generating 3 queries and sending them in series! https://github.com/prisma/prisma/issues/23348
5 replies