Closed Codehagen closed 4 months ago
Hi @Praashh - I have been working on the component when a user first logs inn, they need to be able to generate a API key.
import { randomBytes } from 'crypto';
function generateApiKey(length: number = 32): string {
// Create a buffer of random bytes
const bytes = randomBytes(length);
// Convert bytes to a hexadecimal string
return bytes.toString('hex');
}
export default generateApiKey;
Need to update the prisma schema first.
ok got it @Codehagen if noone isn't working on this issue, will happy to work upon that.
I need a way to copy the api key from the frontend and maybe make it so it displays **. Can make a issue now for you?
@Praashh you can see the issue here #18
ok let me give it a try.
Any questions @Praashh ? 😁
not now sir , need to setup locally first is there any community channel of Dingify?
Hi @Praashh Somone started on this actully made it... But I can make another one for you.
hey @Codehagen what type of passkey we have to generate can you elaborate a bit with some ss ?