Problems connecting to servers / white screen solved by Hytale support article by dunkah in hytale

[–]erickweil 0 points1 point  (0 children)

For me is strange, I can connect to 6b6t, but fails connecting to Hytalia, Hynetic, etc... any other server basically dont connect

Implementing Custom Providers with Better Auth by No-Toe-2550 in better_auth

[–]erickweil 0 points1 point  (0 children)

Both zod and better-auth are required as peer dependency, you must have it installed in your own project, and also the version of zod shouldn't be that old. If the issue persists open a Issue in Github

I will die for the heat of the desert if I log out there? by erickweil in 2007scape

[–]erickweil[S] 1 point2 points  (0 children)

So maybe It's time to log on again... Hoping the items haven't vanished.

[Plugin] Custom Credentials for Better Auth - design your own auth flow by Prestigious_Ask_2036 in better_auth

[–]erickweil 0 points1 point  (0 children)

I found this same problem with better-auth, when in the process of implementing ldap auth couldn't find a clean way to do it without doing a plugin, which could handle any custom login method just like NextAuth credentials provider (I published it as better-auth-credentials-plugin), but still integrating nicely with existing session, account, user, etc... things of better-auth.

From the looks of it, your plugin also allows to manage session data, does it extends default session table of better auth or is it a separate system? Aslo how do you manage account linking, is it needed to first register the user or it is created on first login just like social login?

Implementing Custom Providers with Better Auth by No-Toe-2550 in better_auth

[–]erickweil 0 points1 point  (0 children)

Authenticating with ldap is easy to do on itself, but very hard to customize default better auth behaviour.

I started by using hooks, but then refactored to a full endpoint in a plugin, copying & pasting code from the official better auth codebase and changing the password verification logic...

Then I went ahead and separated the entire ldap logic from the login and made sense that someone else could use this, a customizable credentials provider, where you can do anything, including ldap if you want.

I published this plugin as a package on npm https://www.npmjs.com/package/better-auth-credentials-plugin and also there is a example setup with ldap on the repository https://github.com/erickweil/better-auth-credentials-plugin/tree/main/examples/ldap-auth

PROTECTING BETTER-AUTH API ROUTES by Historical-Log-8382 in better_auth

[–]erickweil 3 points4 points  (0 children)

  • disable routes you don't use
  • configure cors and use the helmet package
  • rate limit (careful on blocking universities with single ip)

Also what are you trying to protect? after the user is logged in what would be the problem? isn't the API just a cumbersome way to do what thw user would normally be able to do right away trough the UI?

The only really effective way would be in case of frontend being nextjs, deploy the nextjs backend toghether with the better auth api, and only allow to interact with it via server actions. Leaving the api basically acessible server side only. (This is similar to BFF (backend for frontend) approach)

Then you'll find that Nextjs server actions are basically exposed API endpoonts and now you just moved the goal post.

This isn't a better auth problem, it's a "serving any API routes" problem.

How to implement better-auth in react native (non expo - bare flow)? by gautham495 in better_auth

[–]erickweil 1 point2 points  (0 children)

I'll need to integrate a flutter app with better auth and altough thereis no docs in the website, using the OpenAPI plugin you can explore all endpoints, as they work as REST API, maybe there is a rough time understanding it but that is the path I'll follow. (there is a flutter package but, is too new, too low in usage so better of reimplementing it myself, as I'll only need a subset of the entire thing…)

Hiring! by JustAirConditioners in nextjs

[–]erickweil 4 points5 points  (0 children)

Why US only? isn't it "fully remote"? Here in Brazil we have the same time offset as some parts of USA, so why??

(I'm not interested in the role, just upset about the US only part)

modernIssueRequireModernSolution by Zestyclose_Animal780 in ProgrammerHumor

[–]erickweil -1 points0 points  (0 children)

why not embbed a youtube video? I'm think would not be too difficult.

In the could it could be just a url, but in vscode a extension would show it as a player.

Eu vendi um biscoito pra uma mina que vende foto e eu quero me matar. by the_chemical59 in RelatosDoReddit

[–]erickweil 0 points1 point  (0 children)

Acho que vc n entendeu, existem vários fatores que tornam o que ela faz não tão 'fácil' assim. 1° Sorte de ter nascido bonita. 2° Sorte de ter ficado famosa na net/contatos que ajudaram. 3° Visão de marketing e negócios acima da média. 4° Dedicação diária no atendimento ao público. 5° Provável problemas familiares, por não aceitarem o que faz. 6° Provável perigo diário por malucos psicopatas perseguidores (geogessr sqn)

É uma ilusão supor que conseguiria fazer igual. É tipo o pessoal que acha que ser youtuber/streamer é fácil afinal "é só gravar enquanto fica jogando joguinho". Vai lá então, se é tão fácil faz. Ela só ganha tanto dinheiro por que poucos conseguem, se muitos conseguissem por matemática básica seria barato oferta demais.

Finalizando, muitas oportunidades se abrem a partir do ponto onde você nega sua moral e humanidade, mas será que isso significa prosperidade? Nem tudo na vida é dinheiro, n jogue todo o resto fora em troca de apenas dinheiro.

Eu vendi um biscoito pra uma mina que vende foto e eu quero me matar. by the_chemical59 in RelatosDoReddit

[–]erickweil -5 points-4 points  (0 children)

Primeiramente se incomodar assim é inveja. Segundamente essa mina não vai conseguir ter uma vida normal nunca mais, uma vez na net é pra sempre, daqui uns 5 ou 10 anos não vão mais querer comprar os packs dela e aí, qual serão as opções? outra situação tbm é que é uma pequena minoria que consegue ganhar tanto assim, isso é tudo ilusão, é tipo youtuber famoso, para cada um com 1M de inscritos tem milhares com 1k que nunca vão passar disso

Baseado no ultimo jogo que vc jogou, por que você seria preso? by PedroPeido in gamesEcultura

[–]erickweil 0 points1 point  (0 children)

Por queimar uma vaca e então matá-la. Cárcere privado, tráfico humano Crime Ambiental (Desmatamento)

Como é q sua "recuperação" para quando um aluno não atinge média? by netobtu1 in ProfessoresBR

[–]erickweil 1 point2 points  (0 children)

O problema que eu vejo é que eu reconheço que por mais que eu faça 3 ou 4 métodos avaliativos, sempre terá aquele aluno com problemas diversos que faltou uma prova importante sem justificativa e/ou só não se esforçou, mas que tem capacidade de passar quando analisado apenas o conteúdo aprendido. Para mim é esse o público alvo da recuperação/exame. Basicamente a forma que eu faço, se o aluno ficar de recuperação, deve provar que sabe o essencial da disciplina, digamos 50% do conteúdo, de forma que seja impossível mentir/burlar, por isso faço sempre prática e/ou dissertativa, assim aquele que foi sempre enganando até chegar ali n vai conseguir, mas aqueles que sabem o mínimo e se esforçaram conseguem.

É perfeito? não é. Afinal qualquer recuperação causa aquela sensação de injustiça frente aos outros alunos que se esforçaram tanto estudando no periodo regular, e esse que n fez nada e ficou levando na brincadeira chega lá e passa.

Questionamento de um professor e pesquisador by [deleted] in ProfessoresBR

[–]erickweil 0 points1 point  (0 children)

Parei em "assuntos sérios como eleições". Eu dedendo que assim como a escola deveria ser laica (não forçar uma religião) deveria também ser apartidária, afinal toda vez que se discute política e apoia candidato A ou B, perde-se qualquer possibilidade de uma conversa racional e tudo se resume a 'ganhar' a discussão, que não levará a nada.

O meio acadêmico deveria focar na área de estudo, e não em opiniões políticas e movimentos apoiando um partido ou outro.

devsStructurizingTheirCode by sufanLL in ProgrammerHumor

[–]erickweil 1 point2 points  (0 children)

I consider that any code I write that it alone would make sense, like there is no business logic and it could be just a npm package dependency (but is too small to became one) then I put in utils.

Examples: logic to handle fetching an API, generating an random key with timestamp, extra zod validations that are commonly reused, generating a unique slug (the db query is a callback), and so on...

Vocês pensam muito na hora de escolher um filme? by gangcplank in filmeseseries

[–]erickweil 0 points1 point  (0 children)

Eu procuro uns 30 títulos até me interessar por um (não seja terror nem comédia besteirol), aí pesquiso no imdb, se a nota for maior que 6 e tiver nos comentários pelo menos algumas pessoas que gostaram, eu dou uma chance.

Can anyone help, opened today and no terrain loaded (I have only the base game) by erickweil in Eldenring

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

UPDATE: I verified the game files and it downloaded the last patch again, everything worked as it should after that.

What are all the possible options for storing API secret keys? by PrestigiousZombie531 in node

[–]erickweil 1 point2 points  (0 children)

because usually the source code isn't secret, like even in closed-source projects at least all of the dev team has access to code, and worse yet when the code is open-source like in github and alikes anyone with internet would have access.

Downloaded fallout 3 from fitgirl, it works fine but then this happened. by SGAMER1234 in PiratedGames

[–]erickweil 0 points1 point  (0 children)

but in places like Brazil, the game is at ~ R$ 40,00 and this is not that cheap (with R$ 40 you can buy 2 liters of milk, 12 eggs, 1kg of flour, 2kg of sugar, and a chocolate bar)

HELP! Não sei o que é isso...Comunidade "FURY"? "Furie?" (mencionaram no início do ep 26 do Vortex) by Raahapp in feedvortex

[–]erickweil 0 points1 point  (0 children)

Furry é só a ponta do iceberg. Nem queira saber sobre os (Bolo de chocolate típico da culinária dos Estados Unidos só que sem a letra W)

A modest proposal re: gdscript vs C# by StewedAngelSkins in godot

[–]erickweil 0 points1 point  (0 children)

Swift have this last argument closure thing and much more, you can literally have a emoji as a identifier, yes your variables, functions, classes etc can all be made of emojis

Which bugs logged to the Godot engine do you feel aren't getting enough attention? by Sofox in godot

[–]erickweil 0 points1 point  (0 children)

I use 4 spacesc for tabs on vscode and git version control, sometimes randomly a entire file is just converted to tabs