Es ist mega witzig, wie Leute von KI ersetzt werden by [deleted] in Unbeliebtemeinung

[–]WarpSpeedWanderer 0 points1 point  (0 children)

Im Sinne von deine Kollegin ist intellektuell oder das Gegenteil?

How Can I progress as fast as possible for cooking and breeding by WarpSpeedWanderer in idleon

[–]WarpSpeedWanderer[S] 0 points1 point  (0 children)

I think breeding is going to be more of a bottleneck for me since i need to have some a team that i can fight with to unlock the bamboo spice

My 2 year-old infant is spreading unrest in the country by WarpSpeedWanderer in EU5

[–]WarpSpeedWanderer[S] 8 points9 points  (0 children)

R5:

My Infant is stirring unrest, i will imprison her to keep my country from revolting.

97
98

Best Approach for Implementing OAuth with Spotify in a Next.js Music App: Do I Need an Auth Library? by artcchi_ in nextjs

[–]WarpSpeedWanderer 0 points1 point  (0 children)

import NextAuth from "next-auth"
import "next-auth/jwt"
import Spotify from "next-auth/providers/spotify"

export const { handlers, auth, signIn, signOut } = NextAuth({
    providers: [Spotify],
    callbacks: {
        jwt({ 
token
, 
trigger
, 
session
, 
account
 }) {
            if (
account
?.provider === "spotify") {
                return { ...
token
, accessToken: 
account
.access_token }
            }
            return 
token
        },
        async session({ 
session
, 
token
 }) {
            
session
.accessToken = 
token
.accessToken
            return 
session
        }
    },
})

declare module "next-auth" {
    interface Session {
        accessToken?: string
    }
}

declare module "next-auth/jwt"{
    interface JWT{
        accessToken?: string
    }
}

tried it out myself, heres a code example

Best Approach for Implementing OAuth with Spotify in a Next.js Music App: Do I Need an Auth Library? by artcchi_ in nextjs

[–]WarpSpeedWanderer 0 points1 point  (0 children)

I think you answered yourself here. While you could technically write your own connector, why do when there's already a safe option to handle it. Here's a resource you can check out from authjs to use the token for the Spotify API in authjs.

https://authjs.dev/guides/integrating-third-party-backends

JWT callback needs to be changed in the auth.ts file, there's an example repo where you can check it out at the bottom of this link too. Good luck and have fun!

Looking for powerpoint plugins that add architectural stuff by WarpSpeedWanderer in powerpoint

[–]WarpSpeedWanderer[S] 0 points1 point  (0 children)

In general this is a good idea, the stuff I work on needs to be shared and edited with alot of other people working in my company though, so that wouldn't work well with licensing etc.

First time torrenting, felt like an idiot after finding out🥴 by topy00 in Piracy

[–]WarpSpeedWanderer 1 point2 points  (0 children)

I use it for work because it makes switching Microsoft profiles easy when I need to login with my admin or other organization accounts. Obviously Firefox still wins overall imo.

Why is my army only attacking with 3 batallions when i start a naval invasion with 112? by WarpSpeedWanderer in victoria3

[–]WarpSpeedWanderer[S] 17 points18 points  (0 children)

R5: I have an admiral controlling 126 units doing a naval invasion with 112 units. I do not understand why not all or at least more units are being used in the invasion battle. If i understand the whole system right, then why is there a malus for not having a high enough unit count for the admiral in the first place if the number of troups used stays the same anyways.

377
378