Migrate Password from Flask to MongoDB

hi,

I like to migrate my auth-db to mongodb. There I store the password with the

werkzeug.security.generate_password_hash(value, method=‘sha256’)

module.

Its stored in the DB like:

sha256$DkrkIkaZ$a27c5447eda87d47f3c8e3095c6550826f51ec801ad33ad028e286b02d4ca75c

Has anyone an idea how to migrate the password so that i can verify the user with the crypto module in the custom auth-function?

thx