-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation is wrong #339
Comments
Refer to specta-rs/website#9 |
What's the equivalent of |
@musjj A bit late but here's the equivalent let router = Router::new().procedure(
"authenticatedProcedure",
Procedure::builder::<Error>()
.with(Middleware::new(
async |ctx: UnauthenticatedContext, input, next| {
let session_id = ctx.session_id.ok_or_else(|| Error::Unauthorized))?;
let user = db_get_user(session_id).await?;
next.exec(AuthenticatedCtx { user }, input).await
},
))
.query(async |ctx, _: ()| Ok(format!("User id: {}", ctx.user.id))),
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rspc.dev
currently shows documentation for the 0.3.1 release.We are in the process of migrating the documentation to specta.dev. All the documentation on
specta.dev
is updated for 0.4.0, however it's still missing a lot as we are working on a complete rewrite to fix some of the major problems with the previous documentation.If you would like to contribute to improving the documentation please contribute to specta-rs/website.
The text was updated successfully, but these errors were encountered: