Skip to content
Discussion options

You must be logged in to vote

Hey! 👋

Can you make sure to require the Auth::RequireSignedInUser module?

require "../apps/auth/handlers/concerns/require_signed_in_user"

class ArticleCreateHandler < Marten::Handlers::RecordCreate
  include Auth::RequireSignedInUser
  # ...
end

Alternatively, in your src/project.cr file you can make sure to require the auth app before other src-level requirements:

# Third party requirements.
require "marten"
require "marten_auth"
require "sqlite3"

# Configuration requirements.
require "../config/settings/base"
require "../config/settings/**"
#require "../config/initializers/**"
require "../config/routes"

# Project requirements.
require "./apps/auth/app" # should appear first
require ".…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by UweWagner403
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants