Ash Record without persitance to the database

wout2938
2023-06-13

wout2938:

How can you manually create a record, so I can use it in my code, but not persist it to the database?

wout2938:

For Ash Authentication I want to create anonymous users, for when you’re not logged in

wout2938:

I want to assign them to my session and socket so I can use them, but not persist them to my database until they verify their email

zachdaniel:

You can use manual actions to do things like that

zachdaniel:

the specific thing you’ve mentioned might bring some interesting challenges, but you can read up on manual actions to see how it works

wout2938:

Thanks <@197905764424089601> I’ll look into that